void
__construct
(string $tabela)
-
string
$tabela: O nome da tabela. Table name
void
delete
([string $where = null])
-
string
$where: Parametros SQL para a exclusao. SQL parameters
boolean
findField
(string $field)
-
string
$field: Nome do campo
void
get
(string[] $campos, [string $where = null], [ $order = null])
-
string[]
$campos: Array com o nome dos campos a serem buscados. An array whit the field names
-
string
$where: Parametros SQL para a pesquisa. SQL query parameters
-
$order
string
getType
(string $field)
-
string
$field: Nome do campo
void
setData
(array $data)
-
array
$data: Array com os dados. Deve ser o $_GET ou o $_POST
void
setTabela
(string $tabela)
-
string
$tabela: Nome da tabela. Table name
void
update
(string $where)
-
string
$where: Parametros SQL para a alteracao. SQL parameters to make the update
string
__get
(string $name)
-
string
$name: Nome do atributo. Attribute's name
void
__set
(string $name, string $value)
-
string
$name: Nome do atributo. Attribute's name
-
string
$value: Valor do atributo. Attribute's value