Enabled ANSI and Videotex servers and frames
This commit is contained in:
@@ -25,22 +25,6 @@ class Frame extends Model
|
||||
return $this->frame.$this->index;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch a specific frame from the database
|
||||
*
|
||||
* @param int $page
|
||||
* @param string $frame
|
||||
* @return mixed
|
||||
*/
|
||||
public function fetch(int $frame,string $index='a'): \App\Classes\Frame
|
||||
{
|
||||
// Return our internal test frame.
|
||||
if ($frame == '999' and $index == 'a')
|
||||
return new \App\Classes\Frame(\App\Classes\Frame::testFrame());
|
||||
|
||||
return new \App\Classes\Frame($this->where('frame',$frame)->where('index',$index)->firstOrFail());
|
||||
}
|
||||
|
||||
public function hasFlag(string $flag)
|
||||
{
|
||||
// @todo When flags is in the DB update this.
|
||||
|
Reference in New Issue
Block a user