forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
407 B
22 lines
407 B
<?php |
|
|
|
namespace app\Models; |
|
|
|
use app\Core\Model; |
|
|
|
/** |
|
* Description of Ramal |
|
* |
|
* @author Lucas Awade |
|
*/ |
|
class Ramal extends Model |
|
{ |
|
|
|
const TABLE = 'pbx_sip_ramais'; |
|
|
|
public function findRamal($ramal) |
|
{ |
|
$this->query = "SELECT * FROM " . self::TABLE . " pr WHERE pr.nome = :ramal;"; |
|
return $this->read($this->query, ['ramal' => $ramal])->fetch(); |
|
} |
|
} |