Public Member Functions |
| get_street ($street=NULL, $town_id=NULL) |
| Check if street exists Exists - return it Not exists - create it a return it.
|
| get_all_streets ($limit_from=0, $limit_results=50, $order_by= 'id', $order_by_direction= 'asc', $filter_values=array()) |
| Get all streets.
|
Protected Attributes |
| $has_many = array('address_points') |
| $belongs_to = array('town', 'street') |
Member Function Documentation
Street_Model::get_all_streets |
( |
|
$limit_from = 0 , |
|
|
|
$limit_results = 50 , |
|
|
|
$order_by = 'id' , |
|
|
|
$order_by_direction = 'asc' , |
|
|
|
$filter_values = array() |
|
) |
| |
Get all streets.
- Parameters
-
integer | $limit_from | |
integer | $limit_results | |
string | $order_by | |
string | $order_by_direction | |
array | $filter_values | |
- Returns
- Mysql_Result
Street_Model::get_street |
( |
|
$street = NULL , |
|
|
|
$town_id = NULL |
|
) |
| |
Check if street exists Exists - return it Not exists - create it a return it.
- Author
- Michal Kliment
- Parameters
-
string | $street | name of street |
integer | $town_id | ID of town which owns street |
- Returns
- Database_Result street object
The documentation for this class was generated from the following file: