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