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


PHP Util::formatCreatedInfo方法代码示例

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


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

示例1: categoryData

 public function categoryData()
 {
     $oDocumentCategory = DocumentCategoryQuery::create()->findPk($this->iDocumentCategoryId);
     $aResult = $oDocumentCategory->toArray();
     $aResult['CreatedInfo'] = Util::formatCreatedInfo($oDocumentCategory);
     $aResult['UpdatedInfo'] = Util::formatUpdatedInfo($oDocumentCategory);
     return $aResult;
 }
开发者ID:rapila,项目名称:cms-base,代码行数:8,代码来源:DocumentCategoryDetailWidgetModule.php

示例2: loadData

 public function loadData()
 {
     $oLinkCategory = LinkCategoryQuery::create()->findPk($this->iLinkCategoryId);
     $aResult = $oLinkCategory->toArray();
     $aResult['CreatedInfo'] = Util::formatCreatedInfo($oLinkCategory);
     $aResult['UpdatedInfo'] = Util::formatUpdatedInfo($oLinkCategory);
     return $aResult;
 }
开发者ID:rapila,项目名称:cms-base,代码行数:8,代码来源:LinkCategoryDetailWidgetModule.php

示例3: journalData

 public function journalData()
 {
     $oJournal = JournalQuery::create()->findPk($this->iJournalId);
     $aResult = $oJournal->toArray();
     $aResult['CreatedInfo'] = Util::formatCreatedInfo($oJournal);
     $aResult['UpdatedInfo'] = Util::formatUpdatedInfo($oJournal);
     return $aResult;
 }
开发者ID:rapila,项目名称:plugin-journal,代码行数:8,代码来源:JournalDetailWidgetModule.php

示例4: getSubscriberData

 public function getSubscriberData()
 {
     $oSubscriber = SubscriberQuery::create()->findPk($this->iSubscriberId);
     $aResult = $oSubscriber->toArray();
     $aResult['CreatedInfo'] = Util::formatCreatedInfo($oSubscriber);
     $aResult['UpdatedInfo'] = Util::formatUpdatedInfo($oSubscriber);
     $aResult['SubscribedGroupIds'] = $oSubscriber->getSubscribedGroupIds(false);
     return $aResult;
 }
开发者ID:rapila,项目名称:plugin-newsletter,代码行数:9,代码来源:SubscriberDetailWidgetModule.php

示例5: groupData

 public function groupData()
 {
     $oGroup = GroupQuery::create()->findPk($this->iGroupId);
     $aResult = $oGroup->toArray();
     $aResult['CreatedInfo'] = Util::formatCreatedInfo($oGroup);
     $aResult['UpdatedInfo'] = Util::formatUpdatedInfo($oGroup);
     $aResult['Roles'] = $oGroup->getRoles(true);
     return $aResult;
 }
开发者ID:rapila,项目名称:cms-base,代码行数:9,代码来源:GroupDetailWidgetModule.php

示例6: loadData

 public function loadData()
 {
     $oSubscriberGroup = SubscriberGroupQuery::create()->findPk($this->iSubscriberGroupId);
     $aResult = $oSubscriberGroup->toArray();
     $aResult['CreatedInfo'] = Util::formatCreatedInfo($oSubscriberGroup);
     $aResult['UpdatedInfo'] = Util::formatUpdatedInfo($oSubscriberGroup);
     $aResult['SubscriberCount'] = $oSubscriberGroup->countSubscriberGroupMemberships();
     return $aResult;
 }
开发者ID:rapila,项目名称:plugin-newsletter,代码行数:9,代码来源:SubscriberGroupDetailWidgetModule.php

示例7: linkData

 public function linkData()
 {
     $oLink = LinkQuery::create()->findPk($this->iLinkId);
     if ($oLink === null) {
         return array();
     }
     $aResult = $oLink->toArray(BasePeer::TYPE_PHPNAME, false);
     $aResult['CreatedInfo'] = Util::formatCreatedInfo($oLink);
     $aResult['UpdatedInfo'] = Util::formatUpdatedInfo($oLink);
     return $aResult;
 }
开发者ID:rapila,项目名称:cms-base,代码行数:11,代码来源:LinkDetailWidgetModule.php

示例8: roleData

 public function roleData()
 {
     $oRole = RoleQuery::create()->findPk($this->sRoleId);
     $aResult = $oRole->toArray();
     $aResult['CreatedInfo'] = Util::formatCreatedInfo($oRole);
     $aResult['UpdatedInfo'] = Util::formatUpdatedInfo($oRole);
     $aResult['rights'] = array();
     $aResult['RoleIsUsed'] = self::roleIsUsed($oRole);
     foreach ($oRole->getRightsJoinPage() as $oRight) {
         $aResult["rights"][$oRight->getId()] = $oRight->toArray();
     }
     $this->getModulesAndRequiredRights();
     return $aResult;
 }
开发者ID:rapila,项目名称:cms-base,代码行数:14,代码来源:RoleDetailWidgetModule.php

示例9: stringData

 public function stringData()
 {
     $oCriteria = new Criteria();
     $oCriteria->addGroupByColumn(TranslationPeer::STRING_KEY);
     $oCriteria->add(TranslationPeer::STRING_KEY, $this->sStringId);
     $oString = TranslationPeer::doSelectOne($oCriteria);
     if ($oString === null) {
         $oString = new Translation();
     }
     $aResult = $oString->toArray();
     $aResult['CreatedInfo'] = Util::formatCreatedInfo($oString);
     $aResult['UpdatedInfo'] = Util::formatUpdatedInfo($oString);
     return $aResult;
 }
开发者ID:rapila,项目名称:cms-base,代码行数:14,代码来源:StringDetailWidgetModule.php

示例10: languageData

 public function languageData()
 {
     $oLanguage = LanguageQuery::create()->findPk($this->sLanguageId);
     $aResult = $oLanguage->toArray();
     $aResult['LanguageName'] = $oLanguage->getLanguageName();
     $aResult['CreatedInfo'] = Util::formatCreatedInfo($oLanguage);
     $aResult['UpdatedInfo'] = Util::formatUpdatedInfo($oLanguage);
     $sLanguageKey = LanguagePeer::STATIC_STRING_NAMESPACE . '.' . $this->sLanguageId;
     // check existence of translation string in its own language
     if (TranslationPeer::getString($sLanguageKey, $this->sLanguageId, '') === '') {
         $sMessage = TranslationPeer::getString('wns.check_static_strings', AdminManager::getContentLanguage(), 'Please check strings', $aParameters = array('string_key' => $sLanguageKey));
         $aResult['LanguageStringMissing'] = $sMessage;
     }
     return $aResult;
 }
开发者ID:rapila,项目名称:cms-base,代码行数:15,代码来源:LanguageDetailWidgetModule.php

示例11: loadData

 public function loadData()
 {
     $oDocumentation = DocumentationQuery::create()->findPk($this->iDocumentationId);
     $aResult = $oDocumentation->toArray();
     $aResult['CreatedInfo'] = Util::formatCreatedInfo($oDocumentation);
     $aResult['UpdatedInfo'] = Util::formatUpdatedInfo($oDocumentation);
     $sDescription = '';
     if (is_resource($oDocumentation->getDescription())) {
         $sDescription = RichtextUtil::parseStorageForBackendOutput(stream_get_contents($oDocumentation->getDescription()))->render();
     } else {
         $sDescription = $oDocumentation->getDescription();
     }
     $aResult['Description'] = $sDescription;
     return $aResult;
 }
开发者ID:rapila,项目名称:plugin-documentation,代码行数:15,代码来源:DocumentationDetailWidgetModule.php

示例12: documentData

 public function documentData()
 {
     $aResult = array();
     $oDocument = DocumentQuery::create()->findPk($this->iDocumentId);
     $aResult = $oDocument->toArray(BasePeer::TYPE_PHPNAME, false);
     $sDimensions = '';
     if ($sValue = $oDocument->getDimensionsIfImage()) {
         $sDimensions = ' (' . $sValue . ')';
     }
     $aResult['FileInfo'] = $oDocument->getExtension() . '/' . DocumentPeer::getDocumentSize($oDocument->getDataSize(), 'auto_iso') . $sDimensions;
     $aResult['CreatedInfo'] = Util::formatCreatedInfo($oDocument);
     $aResult['UpdatedInfo'] = Util::formatUpdatedInfo($oDocument);
     $aResult['ContentCreatedAt'] = $oDocument->getContentCreatedAt('d.m.Y');
     // self::addReferences($oDocument, $aResult);
     return $aResult;
 }
开发者ID:rapila,项目名称:cms-base,代码行数:16,代码来源:DocumentDetailWidgetModule.php

示例13: loadData

 public function loadData()
 {
     $oDocumentationPart = DocumentationPartQuery::create()->findPk($this->iDocumentationPartId);
     if ($oDocumentationPart === null) {
         return array();
     }
     $aResult = $oDocumentationPart->toArray();
     $aResult['CreatedInfo'] = Util::formatCreatedInfo($oDocumentationPart);
     $aResult['UpdatedInfo'] = Util::formatUpdatedInfo($oDocumentationPart);
     $sBody = '';
     if (is_resource($oDocumentationPart->getBody())) {
         $sBody = RichtextUtil::parseStorageForBackendOutput(stream_get_contents($oDocumentationPart->getBody()))->render();
     }
     $aResult['Body'] = $sBody;
     return $aResult;
 }
开发者ID:rapila,项目名称:plugin-documentation,代码行数:16,代码来源:DocumentationPartDetailWidgetModule.php

示例14: loadNewsletterData

 public function loadNewsletterData()
 {
     if (!$this->iNewsletterId) {
         return null;
     }
     $oNewsletter = NewsletterQuery::create()->findPk($this->iNewsletterId);
     $aResult = $oNewsletter->toArray();
     unset($aResult['NewsletterBody']);
     $aResult['template_options'] = self::getMatchingCustomTemplates();
     $aResult['CreatedInfo'] = Util::formatCreatedInfo($oNewsletter);
     $aResult['UpdatedInfo'] = Util::formatUpdatedInfo($oNewsletter);
     $aResult['SessionUserEmail'] = Session::getSession()->getUser()->getEmail();
     $aResult['HasBeedSent'] = $oNewsletter->countNewsletterMailings() > 0;
     $aResult['newsletter_mailings'] = $this->getNewsletterMailings();
     return $aResult;
 }
开发者ID:rapila,项目名称:plugin-newsletter,代码行数:16,代码来源:NewsletterDetailWidgetModule.php

示例15: userData

 public function userData()
 {
     $oUser = UserQuery::create()->findPk($this->iUserId);
     if (Session::getSession()->getUser()->mayEditUser($oUser)) {
         $aResult = $oUser->toArray();
         $aResult['FullName'] = $oUser->getFullName();
         $aResult['IsSessionUser'] = $oUser->isSessionUser();
         if ($aResult['IsSessionUser'] === false) {
             $aResult['ActiveUserGroupIds'] = $oUser->getActiveUserGroupIds(true);
             $aResult['ActiveUserRoleKeys'] = $oUser->getActiveUserRoleKeys();
         }
         $aResult['CreatedInfo'] = Util::formatCreatedInfo($oUser);
         $aResult['UpdatedInfo'] = Util::formatUpdatedInfo($oUser);
         $aResult['IsSessionUser'] = $oUser->isSessionUser();
         $aResult['ForcePasswordReset'] = $oUser->getPassword() === null || $oUser->getPassword() === '' || $oUser->getPassword() === '*';
         return $aResult;
     }
 }
开发者ID:rapila,项目名称:cms-base,代码行数:18,代码来源:UserDetailWidgetModule.php


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