• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP CodendiDataAccess类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中CodendiDataAccess的典型用法代码示例。如果您正苦于以下问题:PHP CodendiDataAccess类的具体用法?PHP CodendiDataAccess怎么用?PHP CodendiDataAccess使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了CodendiDataAccess类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getDynamicUGroupsMembers

 /**
  * Get Dynamic ugroups members
  *
  * @param Integer $ugroupId Id of the uGroup
  * @param Integer $groupId  Id of the project
  *
  * @return DataAccessResult
  */
 public function getDynamicUGroupsMembers($ugroupId, $groupId)
 {
     if ($ugroupId <= 100) {
         $dao = new UGroupUserDao(CodendiDataAccess::instance());
         return $dao->searchUserByDynamicUGroupId($ugroupId, $groupId);
     }
 }
开发者ID:nterray,项目名称:tuleap,代码行数:15,代码来源:UGroupManager.class.php


示例2: getDao

 function getDao()
 {
     if (!isset($this->_dao)) {
         $this->_dao = new ForumML_MessageDao(CodendiDataAccess::instance());
     }
     return $this->_dao;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:ForumML_MessageManager.class.php


示例3: getUserDao

 /**
  * 
  * Returns an instance of UserDao
  * 
  * @return UserDao
  */
 function getUserDao()
 {
     if (!$this->userDao) {
         $this->userDao = new UserDao(CodendiDataAccess::instance());
     }
     return $this->userDao;
 }
开发者ID:rinodung,项目名称:tuleap,代码行数:13,代码来源:Codendi_Mail.class.php


示例4: CodendiUpgrade

 function CodendiUpgrade()
 {
     $this->_upgradeError = null;
     $this->setEnvironment();
     $da =& CodendiDataAccess::instance();
     parent::DataAccessObject($da);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:CodendiUpgrade.class.php


示例5: NotificationsDao

 function &_getDao()
 {
     if (!$this->dao) {
         $this->dao = new NotificationsDao(CodendiDataAccess::instance());
     }
     return $this->dao;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:NotificationsManager.class.php


示例6: listMessages

 function listMessages()
 {
     include_once 'MaillogDao.class.php';
     $dao = new MaillogDao(CodendiDataAccess::instance());
     $dar = $dao->getAllMessages();
     $nb = $dao->getNbMessages();
     echo "<h1>List of emails sent by " . $GLOBALS['sys_name'] . "</h1>\n";
     echo "<div style=\"text-align: center;\">Nb messages: " . $nb . "</div>\n";
     echo "<form name=\"maillog\" method=\"post\" action=\"?\">\n";
     echo "<p>\n";
     echo "<input type=\"submit\" name=\"delete\" value=\"Delete\" />\n";
     echo "</p>\n";
     $hp = Codendi_HTMLPurifier::instance();
     while ($dar->valid()) {
         $row = $dar->current();
         $dar2 = $dao->getAllHeaders($row['id_message']);
         echo '<table class="table table-bordered table-striped"><tbody>';
         while ($dar2->valid()) {
             $row2 = $dar2->current();
             echo "<tr><th>" . $hp->purify($row2['name']) . ":</th><td>" . $hp->purify($row2['value']) . "</td></tr>";
             $dar2->next();
         }
         $input = preg_replace("/=\r?\n/", '', $row['html_body']);
         $input = preg_replace('/=([a-f0-9]{2})/ie', "chr(hexdec('\\1'))", $input);
         echo '<tr><th></th><td>';
         var_dump(substr($input, 0, 400));
         echo '</td></tr>';
         echo "</table>\n";
         $dar->next();
     }
     echo "</form>";
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:32,代码来源:maillogPlugin.class.php


示例7: instance

 /**
  * The manager is a singleton
  *
  * @return PermissionsManager
  */
 public static function instance()
 {
     if (!self::$_permissionmanager_instance) {
         self::$_permissionmanager_instance = new PermissionsManager(new PermissionsDAO(CodendiDataAccess::instance()));
     }
     return self::$_permissionmanager_instance;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:12,代码来源:PermissionsManager.class.php


示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->initDb();
     $this->disk_usage_dao = new Statistics_DiskUsageDao(CodendiDataAccess::instance());
     $this->disk_data_purger = new Statistics_DiskUsagePurger($this->disk_usage_dao);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:Statistics_DiskUsagePurgerTestPHP53.php


示例9: _getDao

 /**
  * Obtain an instance of SvnNotificationDao
  *
  * @return SvnNotificationDao
  */
 public function _getDao()
 {
     if (!isset($this->_dao)) {
         $this->_dao = new SvnNotificationDao(CodendiDataAccess::instance());
     }
     return $this->_dao;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:12,代码来源:SvnNotification.class.php


示例10: _getMailingListDao

 protected function _getMailingListDao()
 {
     if (!$this->_mailinglistdao) {
         $this->_mailinglistdao = new MailingListDao(CodendiDataAccess::instance());
     }
     return $this->_ugroupdao;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:MailingList.class.php


示例11: DocmanWatermark_MetadataValueDao

 private function &_getWatermarkMetadataValueDao()
 {
     if (!$this->dao) {
         $this->dao = new DocmanWatermark_MetadataValueDao(CodendiDataAccess::instance());
     }
     return $this->dao;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:DocmanWatermark_MetadataValueFactory.class.php


示例12: Docman_VersionDao

 function &_getVersionDao()
 {
     if (!$this->dao) {
         $this->dao =& new Docman_VersionDao(CodendiDataAccess::instance());
     }
     return $this->dao;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:Docman_VersionFactory.class.php


示例13: _getPriorityPluginHookDao

 function _getPriorityPluginHookDao()
 {
     if (!is_a($this->priorityPluginHookDao, 'PriorityPluginHookDao')) {
         $this->priorityPluginHookDao = new PriorityPluginHookDao(CodendiDataAccess::instance());
     }
     return $this->priorityPluginHookDao;
 }
开发者ID:nterray,项目名称:tuleap,代码行数:7,代码来源:PluginHookPriorityManager.class.php


示例14: _getDao

 function _getDao()
 {
     if (!$this->dao) {
         $this->dao = new Docman_LogDao(CodendiDataAccess::instance());
     }
     return $this->dao;
 }
开发者ID:nickl-,项目名称:tuleap,代码行数:7,代码来源:Docman_Log.class.php


示例15: _getDao

 function _getDao()
 {
     if (!$this->dao) {
         $this->dao = new SystemEventDao(CodendiDataAccess::instance());
     }
     return $this->dao;
 }
开发者ID:rinodung,项目名称:tuleap,代码行数:7,代码来源:SystemEventManager.class.php


示例16: Docman_SettingsDao

 function &getDao()
 {
     if ($this->dao === null) {
         $this->dao = new Docman_SettingsDao(CodendiDataAccess::instance());
     }
     return $this->dao;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:Docman_SettingsBo.class.php


示例17: listMessages

 function listMessages()
 {
     $dao = new MaillogDao(CodendiDataAccess::instance());
     $dar = $dao->getAllMessages();
     $nb = $dao->getNbMessages();
     echo "<h1>List of emails sent by " . $GLOBALS['sys_name'] . "</h1>\n";
     echo "<div style=\"text-align: center;\">Nb messages: " . $nb . "</div>\n";
     echo "<form name=\"maillog\" method=\"post\" action=\"?\">\n";
     echo "<p>\n";
     echo "<input type=\"submit\" name=\"delete\" value=\"Delete\" />\n";
     echo "</p>\n";
     $hp =& Codendi_HTMLPurifier::instance();
     while ($dar->valid()) {
         $row = $dar->current();
         $dar2 = $dao->getAllHeaders($row['id_message']);
         echo "<div style=\"background-color: lightgrey;\">\n";
         while ($dar2->valid()) {
             $row2 = $dar2->current();
             echo "<strong>" . $hp->purify($row2['name']) . ":</strong> " . $hp->purify($row2['value']) . "<br>\n";
             $dar2->next();
         }
         echo "</div>\n";
         echo '<div style="width: 80em; font-family: monospace; margin-bottom: 0.5em;">' . "\n";
         echo $hp->purify($row['body'], CODENDI_PURIFIER_BASIC);
         echo "</div>\n";
         $dar->next();
     }
     echo "</form>";
 }
开发者ID:nterray,项目名称:tuleap,代码行数:29,代码来源:maillogPlugin.class.php


示例18: PHPWikiAttachmentRevisionDao

 function &getDao()
 {
     static $_codendi_wikiattachmentrevisiondao_instance;
     if (!$_codendi_wikiattachmentrevisiondao_instance) {
         $_codendi_wikiattachmentrevisiondao_instance = new PHPWikiAttachmentRevisionDao(CodendiDataAccess::instance());
     }
     return $_codendi_wikiattachmentrevisiondao_instance;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:8,代码来源:PHPWikiAttachmentRevision.class.php


示例19: Docman_MetadataListOfValuesElementDao

 /**
  * Return Docman_MetadataListOfValuesElementDao object.
  */
 function &getDao()
 {
     static $_plugin_docman_metadata_love_dao_instance;
     if (!$_plugin_docman_metadata_love_dao_instance) {
         $_plugin_docman_metadata_love_dao_instance =& new Docman_MetadataListOfValuesElementDao(CodendiDataAccess::instance());
     }
     return $_plugin_docman_metadata_love_dao_instance;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:11,代码来源:Docman_MetadataListOfValuesElementFactory.class.php


示例20: Docman_MetadataValueDao

 /**
  * Return Docman_MetadataValueDao reference.
  */
 function &getDao()
 {
     static $_plugin_docman_metadata_value_dao_instance;
     if (!$_plugin_docman_metadata_value_dao_instance) {
         $_plugin_docman_metadata_value_dao_instance =& new Docman_MetadataValueDao(CodendiDataAccess::instance());
     }
     return $_plugin_docman_metadata_value_dao_instance;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:11,代码来源:Docman_MetadataValueFactory.class.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Codendi_HTMLPurifier类代码示例发布时间:2022-05-23
下一篇:
PHP Codec类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap