本文整理汇总了PHP中Generic::Generic方法的典型用法代码示例。如果您正苦于以下问题:PHP Generic::Generic方法的具体用法?PHP Generic::Generic怎么用?PHP Generic::Generic使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Generic
的用法示例。
在下文中一共展示了Generic::Generic方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Signature
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
}
示例2: Files
function Files()
{
parent::Generic('devfiles_file', 'id');
$this->store = new FileStore('inc/app/devfiles/data');
$this->store->autoInit = true;
}
示例3: TimeTrackerProject
function TimeTrackerProject()
{
parent::Generic('timetracker_project', 'id');
}
示例4:
function SiteForum_Post()
{
parent::Generic('siteforum_post', 'id', 'topic_id');
$this->usePermissions = true;
}
示例5: SitepollComment
function SitepollComment()
{
parent::Generic('sitepoll_comment', 'id', 'poll');
}
示例6: DevNote
function DevNote()
{
parent::Generic('devnotes_message', 'id');
}
示例7:
function SiteForum_Topic()
{
parent::Generic('siteforum_topic', 'id');
$this->usePermissions = true;
}
示例8:
function SiteEvent_Event()
{
parent::Generic('siteevent_event', 'id');
$this->usePermissions = true;
}
示例9: TimeTrackerEntry
function TimeTrackerEntry()
{
parent::Generic('timetracker_entry', 'id');
}
示例10: NewsStory
function NewsStory()
{
parent::Generic('sitellite_news', 'id');
$this->usePermissions = true;
$this->multilingual = true;
}
示例11: NewsComment
function NewsComment()
{
parent::Generic('sitellite_news_comment', 'id', 'story_id');
}
示例12: SitePoll
function SitePoll()
{
parent::Generic('sitepoll_poll', 'id');
//$this->usePermissions = true;
//$this->multilingual = true;
}