__call()
__construct()
addMethods()
columns()
columnsArray()
compile()
distinct()
getParams()
join()
limit()
offset()
table()
where()
compileMixins()
$group_by
$join
$limit
$mixins
$order_by
$params
$table
$where
$columns
$is_distinct
$method_map
$offset_num
Building a SELECT query.
The join(), select(), and limit() functions should just be passthrus, but I was getting an error when naming a function the same as the class (php4 FTW!) so I had to just move the methods here and call back. Lame I know, but the only other choice was to go back down to 5.2 and name everything with underscores, and I didn't want to do that, so here we are...
| package | Peyote |
|---|---|
| author | Dave Widmer |
__call(string $name, $params) : \Peyote\Query
| inherited_from | \Peyote\Query::__call() |
|---|
stringThe name of the method to call
\Peyote\Exception |
|---|
__construct(string $table)
stringThe name of the table
addMethods(string $mixin, array $methods) : \Petoyte\Query
| inherited_from | \Peyote\Query::addMethods() |
|---|
stringThe name of the mixin
arrayA list of methods to add
\Petoyte\Querycompile() : string
stringgetParams() : array
arraywhere(string $column, string $op, mixed $value) : \Peyote\Select
stringThe column name
stringThe comparison operator
mixedThe value to bind
compileMixins() : array
| inherited_from | \Peyote\Query::compileMixins() |
|---|
arrayAll of the mixins into an array.$mixins : array
$params : array
| inherited_from | \Peyote\Query::$$params |
|---|
$table : string
| inherited_from | \Peyote\Query::$$table |
|---|
$columns : array
$is_distinct : boolean
$method_map : array
| inherited_from | \Peyote\Query::$$method_map |
|---|
$offset_num : int