protected function create() { parent::create(); $this->cache = false; $this->basename = 'downloadcounter'; $this->table = 'downloadcounter'; }
public function create() { parent::create(); $this->basename = 'robots.txt'; $this->dbversion = false; $this->data['idurl'] = 0; }
protected function create() { $this->dbversion = false; parent::create(); $this->basename = 'redirector'; $this->addevents('onget'); }
protected function create() { parent::create(); $this->basename = 'xmlrpc'; $this->dbversion = false; $this->cache = false; $this->addevents('beforecall', 'aftercall', 'getmethods'); }
public function create() { parent::create(); $this->basename = 'appcache.manifest'; $this->dbversion = false; $this->data['url'] = '/manifest.appcache'; $this->data['idurl'] = 0; }
protected function create() { $this->dbversion = dbversion; parent::create(); $this->basename = 'regservices/users'; //$this->table = 'regservices'; $this->table = 'ulogin'; }
protected function create() { $this->dbversion = dbversion; parent::create(); $this->table = 'externallinks'; $this->basename = 'externallinks'; $this->addmap('exclude', array()); }
public function delete($id) { if (parent::delete($id)) { $urlmap = turlmap::i(); $urlmap->clearcache(); return true; } return false; }
protected function create() { $this->dbversion = true; parent::create(); $this->basename = 'usersoptions'; $this->table = 'useroptions'; $this->addmap('defvalues', array()); $this->defitems = array(); }
protected function create() { parent::create(); $this->basename = 'itemsposts'; $this->table = 'itemsposts'; $this->tablepost = 'posts'; $this->postprop = 'post'; $this->itemprop = 'item'; }
protected function create() { $this->dbversion = false; parent::create(); $this->basename = 'regservices' . DIRECTORY_SEPARATOR . 'index'; $this->data['dirname'] = ''; $this->data['url'] = '/admin/regservice.htm'; $this->data['widget'] = ''; $this->data['widget_title'] = ''; }
public function save() { if ($this->lockcount > 0) { return; } $this->data['revision']++; parent::save(); $this->merge(); $this->onsave(); }
protected function create() { parent::create(); $this->addevents('edited', 'onprocessform', 'onbeforemenu', 'onmenu', 'onitems', 'onsubitems', 'oncontent'); $this->dbversion = false; $this->basename = 'menus' . DIRECTORY_SEPARATOR . 'index'; $this->addmap('tree', array()); $this->data['idhome'] = 0; $this->data['home'] = false; }
protected function create() { $this->dbversion = true; parent::create(); $this->table = 'comments'; $this->rawtable = 'rawcomments'; $this->basename = 'comments'; $this->addevents('edited', 'onstatus', 'changed', 'onapproved'); $this->pid = 0; }
public function delete($id) { if ($id == 1) { return; } $this->beforedelete($id); $this->getdb($this->grouptable)->delete('iduser = '******'comments')->update("status = 'deleted'", "author = {$id}"); return parent::delete($id); }
protected function create() { $this->dbversion = true; parent::create(); $this->addevents('edited'); $this->basename = 'polls' . DIRECTORY_SEPARATOR . 'index'; $this->table = 'polls'; $this->votes = 'pollvotes'; $this->users1 = 'pollusers1'; $this->users2 = 'pollusers2'; $this->tml_items = array(); $this->data['autoid_tml'] = 0; }
protected function create() { $this->dbversion = true; parent::create(); $this->table = 'urlmap'; $this->basename = 'urlmap'; $this->addevents('beforerequest', 'afterrequest', 'onclearcache'); $this->data['disabledcron'] = false; $this->data['redirdom'] = false; $this->is404 = false; $this->isredir = false; $this->adminpanel = false; $this->mobile = false; $this->cache_enabled = litepublisher::$options->cache && !litepublisher::$options->admincookie; $this->page = 1; $this->close_events = array(); }
protected function create() { $this->dbversion = dbversion; parent::create(); $this->table = 'downloaditems'; }
protected function create() { $this->dbversion = false; parent::create(); $this->basename = 'polls' . DIRECTORY_SEPARATOR . 'types'; }
public function delete($id) { $item = $this->getitem($id); litepublisher::$urlmap->deleteitem($item['idurl']); $this->contents->delete($id); $list = $this->itemsposts->getposts($id); $this->itemsposts->deleteitem($id); parent::delete($id); if ($this->postpropname) { $this->itemsposts->updateposts($list, $this->postpropname); } $this->changed(); litepublisher::$urlmap->clearcache(); }
public function delete($id) { if (!$this->itemexists($id)) { return false; } $list = $this->itemsposts->getposts($id); $this->itemsposts->deleteitem($id); $this->itemsposts->updateposts($list, 'files'); $item = $this->getitem($id); if ($item['idperm'] == 0) { @unlink(litepublisher::$paths->files . str_replace('/', DIRECTORY_SEPARATOR, $item['filename'])); } else { @unlink(litepublisher::$paths->files . 'private' . DIRECTORY_SEPARATOR . basename($item['filename'])); litepublisher::$urlmap->delete('/files/' . $item['filename']); } parent::delete($id); if ($item['preview'] > 0) { $this->delete($item['preview']); } $this->getdb('imghashes')->delete("id = {$id}"); $this->changed(); return true; }
public function load() { if (!isset($this->id)) { return false; } return parent::load(); }
protected function create() { parent::create(); $this->basename = 'plugins' . DIRECTORY_SEPARATOR . strtolower(get_class($this)); }
protected function create() { parent::create(); $this->data['idview'] = 1; $this->data['keywords'] = ''; $this->data['description'] = ''; $this->data['head'] = ''; }
public function delete($id) { if (!$this->itemexists($id)) { return false; } $this->itemsposts->deleteitem($id); return parent::delete($id); }
public function save() { parent::save(); $this->update(); }
protected function create() { $this->dbversion = false; parent::create(); $this->basename = 'shortcodes'; }
public function __get($name) { if (isset($this->classes[$name])) { return $this->getinstance($this->classes[$name]); } if (isset($this->items[$name])) { return $this->getinstance($name); } $class = 't' . $name; if (isset($this->items[$class])) { return $this->getinstance($class); } return parent::__get($name); }
protected function create() { $this->dbversion = false; parent::create(); $this->modified = false; }
public function __call($name, $args) { if (isset($this->items[$name])) { return $this->callaction($name, $args[0], $args[1]); } return parent::__call($name, $args); }