Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->_fieldKey = 'id';
     $this->_fieldNames = $this->_getCols();
     $this->_fieldLabels = array('id' => 'Id', 'nome' => 'Nome', 'operador' => 'Operador', 'fator' => 'Fator');
     $this->_lockedFields = array('id');
     $this->_orderField = 'nome';
     $this->_searchField = 'nome';
     $this->_selectOptions = array('operador' => array('-' => '-', '*' => '*', 'n' => 'n'));
     $this->_typeElement = array('nome' => Fgsl_Form_Constants::TEXT, 'operador' => Fgsl_Form_Constants::SELECT, 'fator' => Fgsl_Form_Constants::TEXT);
     $this->_typeValue = array('fator' => self::FLOAT_TYPE);
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->_fieldKey = 'cpf';
     $this->_fieldNames = $this->_getCols();
     $this->_fieldLabels = array('cpf' => 'CPF', 'nome' => 'Nome', 'senha' => 'Senha', 'email' => 'e-mail');
     $this->_lockedFields = array('cpf');
     $this->_orderField = 'nome';
     $this->_searchField = 'nome';
     $this->_selectOptions = array();
     $this->_typeElement = array('nome' => Fgsl_Form_Constants::TEXT, 'senha' => Fgsl_Form_Constants::PASSWORD, 'email' => Fgsl_Form_Constants::TEXT);
     $this->_typeValue = array();
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $this->_fieldKey = '';
     $this->_fieldNames = $this->_getCols();
     $this->_fieldLabels = array('id_pedido' => 'Pedido', 'id_produto' => 'Produto', 'preco' => 'Preço');
     $this->_lockedFields = array();
     $this->_orderField = 'id_pedido';
     $this->_searchField = '';
     $this->_selectOptions = array();
     $this->_typeElement = array('id_pedido' => Fgsl_Form_Constants::SELECT, 'id_produto' => Fgsl_Form_Constants::SELECT, 'preco' => Fgsl_Form_Constants::TEXT);
     $this->_typeValue = array('id_pedido' => self::INT_TYPE, 'id_produto' => self::INT_TYPE, 'preco' => self::FLOAT_TYPE);
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     $this->_fieldKey = 'cpf';
     $this->_fieldNames = $this->_getCols();
     $this->_fieldLabels = array('id' => 'Id', 'data' => 'Data', 'status' => 'Status', 'cpf' => 'cpf');
     $this->_lockedFields = array('id');
     $this->_orderField = 'data';
     $this->_searchField = 'cpf';
     $this->_selectOptions = array();
     $this->_typeElement = array('data' => Fgsl_Form_Constants::TEXT, 'status' => Fgsl_Form_Constants::CHECKBOX, 'cpf' => Fgsl_Form_Constants::TEXT);
     $this->_typeValue = array('status' => self::BOOLEAN_TYPE);
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     $this->_fieldKey = 'id';
     $this->_fieldNames = $this->_getCols();
     $this->_fieldLabels = array('id' => 'Id', 'recurso' => 'Recurso', 'privilegio' => 'Privilégio');
     $this->_lockedFields = array('id');
     $this->_orderField = 'recurso';
     $this->_searchField = 'recurso';
     $this->_selectOptions = array();
     $this->_typeElement = array('recurso' => Fgsl_Form_Constants::TEXT, 'privilegio' => Fgsl_Form_Constants::TEXT);
     $this->_typeValue = array('id' => self::INT_TYPE);
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     $this->_fieldKey = 'matricula';
     $this->_fieldNames = $this->_getCols();
     $this->_fieldLabels = array('id' => 'Id', 'nome' => 'Nome', 'apelido' => 'Apelido', 'senha' => 'Senha');
     $this->_lockedFields = array('id');
     $this->_orderField = 'nome';
     $this->_searchField = 'nome';
     $this->_selectOptions = array();
     $this->_typeElement = array('nome' => Fgsl_Form_Constants::TEXT, 'apelido' => Fgsl_Form_Constants::TEXT, 'senha' => Fgsl_Form_Constants::PASSWORD);
     $this->_typeValue = array('matricula' => self::INT_TYPE);
 }
Example #7
0
 public function __construct()
 {
     parent::__construct();
     $this->_fieldKey = 'id_produto';
     $this->_fieldNames = $this->_getCols();
     $this->_fieldLabels = array('id' => 'Id', 'id_produto' => 'Produto', 'quantidade' => 'Quantidade', 'data' => 'Data', 'tipo' => 'Tipo');
     $this->_lockedFields = array('id');
     $this->_orderField = 'nome';
     $this->_searchField = 'nome';
     $this->_selectOptions = array();
     $this->_typeElement = array('quantidade' => Fgsl_Form_Constants::TEXT, 'data' => Fgsl_Form_Constants::TEXT, 'tipo' => Fgsl_Form_Constants::TEXT);
     $this->_typeValue = array('id' => self::INT_TYPE, 'id_produto' => self::INT_TYPE, 'quantidade' => self::INT_TYPE);
     $this->_join = array(array('p' => 'produtos'), 'estoque.id_produto = p.id');
     $this->_joinFieldNames = array('nome');
 }
Example #8
0
 public function update(array $data, $where)
 {
     unset($data['nome']);
     parent::update($data, $where);
 }