當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。