ajtodo_roles = new AJTODO_Role(); $this->ajtodo_roles->setRoles(); } public function init($common){ if(isset($common)){ $this->common = $common; include($this->common->skinPath . "/buttons.php"); include($this->common->skinPath . "/views.php"); include($this->common->skinPath . "/js_templates.php"); $this->js_templates = $js_templates; $this->buttons = $buttons; $this->views = $views; $this->ajtodo_alert = new AJTODO_Alert($this->common); } } public function getFilter(){ $ret = "
get_var($sql." and donedated is not null "); return $ret; } public function getList(){ global $wpdb; $ret = array(); $sql = "SELECT * FROM ".AJTODO_DB_TODO."_".$this->project->id; $sql .= " order by donedated, updated desc, regdate desc"; $this->todolist = $wpdb->get_results($sql); $ret["result"] = true; $ret["todolist"] = $this->todolist; return $ret; } public function getForm($viewname){ return $this->views[$viewname]; } }