本文整理汇总了PHP中Newsletter::getTables方法的典型用法代码示例。如果您正苦于以下问题:PHP Newsletter::getTables方法的具体用法?PHP Newsletter::getTables怎么用?PHP Newsletter::getTables使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Newsletter
的用法示例。
在下文中一共展示了Newsletter::getTables方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: uninstall
function uninstall()
{
$query = new DB_Table_Delete(Newsletter::getTables());
}
示例2: initQuery
function initQuery($params)
{
$tables = Newsletter::getTables();
$nl = $tables['newsletter_letters']['columns'];
$this->deleteMultiLangField($nl['letter_subject'], $nl['letter_id'], 'Newsletter');
$this->deleteMultiLangField($nl['letter_from_name'], $nl['letter_id'], 'Newsletter');
$this->deleteMultiLangField($nl['letter_from_email'], $nl['letter_id'], 'Newsletter');
$this->deleteMultiLangField($nl['letter_html'], $nl['letter_id'], 'Newsletter');
// $this -> deleteMultiLangField($nl['letter_text'], $nl['letter_id'], 'Newsletter');
$this->Where($nl['letter_id'], DB_IN, $this->arrayToIn($params['ids']));
}
示例3: initQuery
function initQuery($params)
{
$tables = Subscriptions::getTables();
$ntables = Newsletter::getTables();
$tcolumns = $tables['subscription_topic']['columns'];
$ecolumns = $tables['subscription_email']['columns'];
$lcolumns = $ntables['newsletter_topics']['columns'];
$this->addSelectField($lcolumns['letter_id']);
$this->addSelectField($lcolumns['topic_id']);
$this->addInnerJoin('subscription_topic', $lcolumns['topic_id'], DB_EQ, $tcolumns['topic_id']);
$this->setMultiLangAlias('_ml_name', 'subscription_topic', $tcolumns['topic_name'], $tcolumns['topic_id'], 'Subscriptions');
$this->addSelectValue($this->getMultiLangAlias('_ml_name'), 'topic_name');
$this->addSelectField($this->fCount($ecolumns['email_id']), 'topic_emails');
$this->addLeftJoin('subscription_email', $ecolumns['topic_id'], DB_EQ, $tcolumns['topic_id']);
$this->Where($lcolumns['letter_id'], DB_IN, $this->arrayToIn($params['letters_ids']));
$this->SelectGroup($tcolumns['topic_id']);
$this->SelectOrder($tcolumns['sort_order'], 'ASC');
}