function Signature($id = false) { parent::Generic('petition_signature', 'id'); if (is_array($id)) { $newkey = $this->add($id); if (is_numeric($newkey)) { $this->setCurrent($this->get($newkey)); } else { $this->setCurrent($this->get($id['id'])); } } elseif (is_object($id)) { $this->setCurrent($id); } elseif ($id) { $this->setCurrent($this->get($id)); } // Signature cascade }
function Files() { parent::Generic('devfiles_file', 'id'); $this->store = new FileStore('inc/app/devfiles/data'); $this->store->autoInit = true; }
function TimeTrackerProject() { parent::Generic('timetracker_project', 'id'); }
function SiteForum_Post() { parent::Generic('siteforum_post', 'id', 'topic_id'); $this->usePermissions = true; }
function SitepollComment() { parent::Generic('sitepoll_comment', 'id', 'poll'); }
function DevNote() { parent::Generic('devnotes_message', 'id'); }
function SiteForum_Topic() { parent::Generic('siteforum_topic', 'id'); $this->usePermissions = true; }
function SiteEvent_Event() { parent::Generic('siteevent_event', 'id'); $this->usePermissions = true; }
function TimeTrackerEntry() { parent::Generic('timetracker_entry', 'id'); }
function NewsStory() { parent::Generic('sitellite_news', 'id'); $this->usePermissions = true; $this->multilingual = true; }
function NewsComment() { parent::Generic('sitellite_news_comment', 'id', 'story_id'); }
function SitePoll() { parent::Generic('sitepoll_poll', 'id'); //$this->usePermissions = true; //$this->multilingual = true; }