Example #1
0
 public function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     // Set data types
     $this->data_types = array('name' => 'string', 'slug' => 'string');
 }
 public function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     // Set data types
     $this->data_types = array('tag_id' => 'numeric', 'users_to_mark_id' => 'numeric', 'user_id' => 'numeric');
 }
Example #3
0
 public function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     // Set data types
     $this->data_types = array('title' => 'string', 'url' => 'url', 'url_key' => 'md5', 'embed' => 'string', 'created_on' => 'datetime');
 }
Example #4
0
 public function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     // Set data types
     $this->data_types = array('smart_label_id' => 'numeric', 'user_id' => 'numeric', 'name' => 'string', 'domain' => 'domain', 'path' => 'string', 'smart_key' => 'md5', 'active' => 'bool', 'slug' => 'string', 'created_on' => 'datetime');
     // Set a different read method
     $this->read_method = 'readComplete';
 }
Example #5
0
 public function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     // Set data types
     $this->data_types = array('mark_id' => 'numeric', 'user_id' => 'numeric', 'label_id' => 'numeric', 'notes' => 'string', 'active' => 'numeric', 'created_on' => 'datetime', 'archived_on' => 'datetime', 'title' => 'string', 'url' => 'url');
     // Set a different read method
     $this->read_method = 'readComplete';
 }
Example #6
0
 public function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     $this->data_types = array('user_id' => 'numeric', 'email' => 'email', 'password' => 'password', 'active' => 'bool', 'admin' => 'bool', 'created_on' => 'datetime');
 }
Example #7
0
 public function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     $this->data_types = array('token_id' => 'numeric', 'user_id' => 'numeric', 'token_type' => 'string', 'token_value' => 'string', 'created_on' => 'datetime', 'valid_until' => 'datetime', 'active' => 'bool', 'used_on' => 'datetime');
 }