コード例 #1
0
 protected function create()
 {
     parent::create();
     $this->cache = false;
     $this->basename = 'downloadcounter';
     $this->table = 'downloadcounter';
 }
コード例 #2
0
 public function create()
 {
     parent::create();
     $this->basename = 'robots.txt';
     $this->dbversion = false;
     $this->data['idurl'] = 0;
 }
コード例 #3
0
 protected function create()
 {
     $this->dbversion = false;
     parent::create();
     $this->basename = 'redirector';
     $this->addevents('onget');
 }
コード例 #4
0
 protected function create()
 {
     parent::create();
     $this->basename = 'xmlrpc';
     $this->dbversion = false;
     $this->cache = false;
     $this->addevents('beforecall', 'aftercall', 'getmethods');
 }
コード例 #5
0
 public function create()
 {
     parent::create();
     $this->basename = 'appcache.manifest';
     $this->dbversion = false;
     $this->data['url'] = '/manifest.appcache';
     $this->data['idurl'] = 0;
 }
コード例 #6
0
 protected function create()
 {
     $this->dbversion = dbversion;
     parent::create();
     $this->basename = 'regservices/users';
     //$this->table = 'regservices';
     $this->table = 'ulogin';
 }
コード例 #7
0
 protected function create()
 {
     $this->dbversion = dbversion;
     parent::create();
     $this->table = 'externallinks';
     $this->basename = 'externallinks';
     $this->addmap('exclude', array());
 }
コード例 #8
0
ファイル: foaf.class.php プロジェクト: laiello/litepublisher
 public function delete($id)
 {
     if (parent::delete($id)) {
         $urlmap = turlmap::i();
         $urlmap->clearcache();
         return true;
     }
     return false;
 }
コード例 #9
0
 protected function create()
 {
     $this->dbversion = true;
     parent::create();
     $this->basename = 'usersoptions';
     $this->table = 'useroptions';
     $this->addmap('defvalues', array());
     $this->defitems = array();
 }
コード例 #10
0
 protected function create()
 {
     parent::create();
     $this->basename = 'itemsposts';
     $this->table = 'itemsposts';
     $this->tablepost = 'posts';
     $this->postprop = 'post';
     $this->itemprop = 'item';
 }
コード例 #11
0
 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'] = '';
 }
コード例 #12
0
 public function save()
 {
     if ($this->lockcount > 0) {
         return;
     }
     $this->data['revision']++;
     parent::save();
     $this->merge();
     $this->onsave();
 }
コード例 #13
0
ファイル: menu.class.php プロジェクト: laiello/litepublisher
 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;
 }
コード例 #14
0
 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;
 }
コード例 #15
0
ファイル: users.class.php プロジェクト: laiello/litepublisher
 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);
 }
コード例 #16
0
ファイル: polls.class.php プロジェクト: laiello/litepublisher
 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;
 }
コード例 #17
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();
 }
コード例 #18
0
 protected function create()
 {
     $this->dbversion = dbversion;
     parent::create();
     $this->table = 'downloaditems';
 }
コード例 #19
0
ファイル: poll.types.php プロジェクト: laiello/litepublisher
 protected function create()
 {
     $this->dbversion = false;
     parent::create();
     $this->basename = 'polls' . DIRECTORY_SEPARATOR . 'types';
 }
コード例 #20
0
 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();
 }
コード例 #21
0
 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;
 }
コード例 #22
0
ファイル: items.class.php プロジェクト: laiello/litepublisher
 public function load()
 {
     if (!isset($this->id)) {
         return false;
     }
     return parent::load();
 }
コード例 #23
0
 protected function create()
 {
     parent::create();
     $this->basename = 'plugins' . DIRECTORY_SEPARATOR . strtolower(get_class($this));
 }
コード例 #24
0
ファイル: views.class.php プロジェクト: laiello/litepublisher
 protected function create()
 {
     parent::create();
     $this->data['idview'] = 1;
     $this->data['keywords'] = '';
     $this->data['description'] = '';
     $this->data['head'] = '';
 }
コード例 #25
0
 public function delete($id)
 {
     if (!$this->itemexists($id)) {
         return false;
     }
     $this->itemsposts->deleteitem($id);
     return parent::delete($id);
 }
コード例 #26
0
 public function save()
 {
     parent::save();
     $this->update();
 }
コード例 #27
0
 protected function create()
 {
     $this->dbversion = false;
     parent::create();
     $this->basename = 'shortcodes';
 }
コード例 #28
0
 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);
 }
コード例 #29
0
 protected function create()
 {
     $this->dbversion = false;
     parent::create();
     $this->modified = false;
 }
コード例 #30
0
 public function __call($name, $args)
 {
     if (isset($this->items[$name])) {
         return $this->callaction($name, $args[0], $args[1]);
     }
     return parent::__call($name, $args);
 }