当前位置: 首页>>代码示例>>PHP>>正文


PHP Newsletter::getTables方法代码示例

本文整理汇总了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());
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:4,代码来源:newsletter_api.php

示例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']));
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:11,代码来源:common.php

示例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');
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:18,代码来源:common.php


注:本文中的Newsletter::getTables方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。