public function __construct() { parent::__construct('project_user', array('project' => 'OBJ', 'user' => 'OBJ', 'position' => 'NUM'), array('project_id', 'user_id')); }
/** * sanitize any value */ public static function sanitize($value, $type) { $obj = new tzn_model(); return $obj->sani($value, $type); }
function __construct() { parent::__construct('log', array('log_date' => 'DTM', 'user' => 'OBJ', 'action_code' => 'STR', 'item_id' => 'NUM', 'project_id' => 'NUM', 'comment_id' => 'NUM', 'info' => 'STR', 'hidden' => 'BOL'), array('log_date', 'user_id')); }
function __construct() { parent::__construct('user', array('ID' => 'UID', 'user_login' => 'STR', 'user_nicename' => 'STR', 'user_email' => 'EML', 'user_url' => 'STR', 'display_name' => 'STR', 'status' => 'NUM'), 'ID'); }
public function __construct() { $this->error = ''; parent::__construct('item_file', array('item_file_id' => 'UID', 'item_id' => 'NUM', 'user_id' => 'NUM', 'file_title' => 'STR', 'file_name' => 'STR', 'file_type' => 'STR', 'file_size' => 'NUM', 'post_date' => 'DTM', 'last_change_date' => 'DTM', 'file_tags' => 'STR')); }