메소드 |
설명 |
|
create ( $data = null ) : ORMWrapper | boolean |
Wrap Idiorm's create method to return an
empty instance of the class associated with
this wrapper instead of the raw ORM class. |
|
filter ( ) : ORMWrapper |
Add a custom filter to the method chain specified on the
model class. This allows custom queries to be added
to models. The filter should take an instance of the
ORM wrapper as its first argument and return an instance
of the ORM wrapper. Any arguments passed to this method
after the name of the filter will be passed to the called
filter function as arguments after the ORM class. |
|
find_many ( ) : Array |
Wrap Idiorm's find_many method to return
an array of instances of the class associated
with this wrapper instead of the raw ORM class. |
|
find_one ( null | integer $id = null ) : Model |
Wrap Idiorm's find_one method to return
an instance of the class associated with
this wrapper instead of the raw ORM class. |
|
for_table ( string $table_name, string $connection_name = parent::DEFAULT_CONNECTION ) : ORMWrapper |
Factory method, return an instance of this
class bound to the supplied table name. |
|
set_class_name ( string $class_name ) : void |
Set the name of the class which the wrapped
methods should return instances of. |
|