public function check_isset_view () { $query= $this->mysql->q('SELECT table_name FROM INFORMATION_SCHEMA.VIEWS WHERE VIEW_DEFINITION LIKE "%'.$this->tablename.'%" AND table_name="'.$this->tablename.'_view_all"'); $num = $this->mysql->n($query); if($num==0){ return false; } else return true; }