2020-10-11 21:57:51 +08:00
|
|
|
<?php
|
|
|
|
namespace ZM;
|
|
|
|
require_once('database.php');
|
|
|
|
require_once('Object.php');
|
|
|
|
|
|
|
|
class Model extends ZM_Object {
|
|
|
|
protected static $table = 'Models';
|
|
|
|
|
|
|
|
protected $defaults = array(
|
|
|
|
'Id' => null,
|
|
|
|
'Name' => '',
|
2021-07-07 21:46:12 +08:00
|
|
|
'ManufacturerId' => null,
|
2020-10-11 21:57:51 +08:00
|
|
|
);
|
|
|
|
|
|
|
|
public static function find( $parameters = array(), $options = array() ) {
|
|
|
|
return ZM_Object::_find(get_class(), $parameters, $options);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function find_one( $parameters = array(), $options = array() ) {
|
|
|
|
return ZM_Object::_find_one(get_class(), $parameters, $options);
|
|
|
|
}
|
|
|
|
} # end class Model
|
|
|
|
?>
|