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
453 B

<?php
namespace app\Models;
use app\Core\Model;
/**
* Description of EventQueue
*
* @author root
*/
class Parametros extends Model
{
const TABLE = 'pbx_parametros';
public function findProtocolByParams()
{
$this->query = "SELECT prm_agente_proto, prm_use_proto_parceiro, prm_pausa_grupo, prm_media_simultaneo FROM " . self::TABLE . " WHERE id = :id;";
return $this->read($this->query, ['id' => 1])->fetch();
}
}