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


PHP Registry::getActionLogger方法代码示例

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


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

示例1: buildwebsiteAction

 public function buildwebsiteAction()
 {
     $validatedRequest = $this->getValidatedRequest('Builder', 'BuildWebsite');
     $this->getBusiness()->checkUserRights('buildWebsite', array('websiteId' => $validatedRequest->getWebsiteId()));
     $build = $this->getBusiness()->buildWebsite($validatedRequest->getWebsiteId(), $validatedRequest->getComment());
     Registry::getActionLogger()->logAction(BuilderBusiness::BUILDER_BUILD_ACTION, array('websiteId' => $validatedRequest->getWebsiteId(), 'id' => $build->getId()));
     $this->responseData->setData(new Response\Build($build));
 }
开发者ID:rukzuk,项目名称:rukzuk,代码行数:8,代码来源:BuilderController.php

示例2: editAction

 public function editAction()
 {
     $validatedRequest = $this->getValidatedRequest('TemplateSnippet', 'Edit');
     // Darf das TemplateSnippet bearbeitet werden?
     $check = array('id' => $validatedRequest->getId(), 'websiteId' => $validatedRequest->getWebsiteId());
     $this->getBusiness()->checkUserRights('edit', $check);
     $columnsValues = array('websiteid' => $validatedRequest->getWebsiteId(), 'name' => $validatedRequest->getName(), 'description' => $validatedRequest->getDescription(), 'category' => $validatedRequest->getCategory(), 'content' => $validatedRequest->getContent());
     $templateSnippet = $this->getBusiness()->update($validatedRequest->getWebsiteId(), $validatedRequest->getId(), $columnsValues);
     Registry::getActionLogger()->logAction(TemplateSnippetBusiness::TEMPLATESNIPPET_EDIT_ACTION, array('websiteId' => $validatedRequest->getWebsiteId(), 'id' => $templateSnippet->getId(), 'name' => $templateSnippet->getName()));
 }
开发者ID:rukzuk,项目名称:rukzuk,代码行数:10,代码来源:TemplatesnippetController.php

示例3: loginAction

 public function loginAction()
 {
     $validatedRequest = $this->getValidatedRequest('User', 'Login');
     $this->getBusiness()->login($validatedRequest->getUsername(), $validatedRequest->getPassword());
     Registry::getActionLogger()->logAction(UserBusiness::USER_LOGIN_ACTION, array());
 }
开发者ID:rukzuk,项目名称:rukzuk,代码行数:6,代码来源:UserController.php

示例4: setActionLoggerShouldSetActionLogger

 /**
  * @test
  * @group library
  */
 public function setActionLoggerShouldSetActionLogger()
 {
     $this->assertInstanceOf('Seitenbau\\Logger\\Action', Registry::getActionLogger());
 }
开发者ID:rukzuk,项目名称:rukzuk,代码行数:8,代码来源:RegistryTest.php

示例5: editmetaAction

 public function editmetaAction()
 {
     $validatedRequest = $this->getValidatedRequest('Template', 'EditMeta');
     // Darf das Template bearbeitet werden?
     $check = array('id' => $validatedRequest->getId(), 'websiteId' => $validatedRequest->getWebsiteId());
     $this->getBusiness()->checkUserRights('edit', $check);
     // Es darf kein Lock auf dem Modul vorhanden sein!
     $hasLock = $this->hasLock($validatedRequest->getId(), $validatedRequest->getWebsiteId(), LockBusiness::LOCK_TYPE_TEMPLATE);
     if (false !== $hasLock) {
         return false;
     }
     $attributes = array();
     if ($validatedRequest->getName() !== null) {
         $attributes['name'] = $validatedRequest->getName();
     }
     $template = $this->getBusiness()->update($validatedRequest->getId(), $validatedRequest->getWebsiteId(), $attributes);
     Registry::getActionLogger()->logAction(TemplateBusiness::TEMPLATE_EDIT_META_ACTION, array('websiteId' => $validatedRequest->getWebsiteId(), 'id' => $template->getId(), 'name' => $template->getName(), 'contentChecksum' => $template->getContentchecksum()));
 }
开发者ID:rukzuk,项目名称:rukzuk,代码行数:18,代码来源:TemplateController.php

示例6: migrateDb

 /**
  * @param string|null $toVersion
  *
  * @return array
  * @throws \Doctrine\DBAL\Migrations\MigrationException
  */
 protected function migrateDb($toVersion = null)
 {
     // the order is important
     $updateInfo = array();
     // 1. reset/clear opcode cache
     $this->resetOpCodeCache();
     // 2. migrate database
     $configuration = $this->getDoctrineMigrationConfig();
     // Information ermitteln
     $currentVersion = $configuration->getCurrentVersion();
     $latestVersion = $configuration->getLatestVersion();
     if ($toVersion === null) {
         $toVersion = $latestVersion;
     }
     // DB-Migration durchfuehren
     $migration = new \Doctrine\DBAL\Migrations\Migration($configuration);
     $migration->migrate($toVersion, false);
     $versionInfo = array('current' => (string) $currentVersion, 'latest' => (string) $latestVersion, 'migrateto' => (string) $toVersion);
     // log migrate
     Registry::getActionLogger()->logAction(self::SPACE_MIGRATED_ACTION, $versionInfo);
     return array('version' => $versionInfo);
 }
开发者ID:rukzuk,项目名称:rukzuk,代码行数:28,代码来源:Cli.php

示例7: logSuccessfulSent

 /**
  * @param array $submitted_additional_info
  */
 protected function logSuccessfulSent($submitted_additional_info)
 {
     Registry::getActionLogger()->logAction(CliBusiness::SPACE_SUBMITTED_LOG, $submitted_additional_info);
 }
开发者ID:rukzuk,项目名称:rukzuk,代码行数:7,代码来源:SendStatisticToAnalytics.php

示例8: logDiskUsage

 public static function logDiskUsage()
 {
     Registry::getActionLogger()->logAction(CliBusiness::SPACE_DISK_USAGE_ACTION, array('disk_usage' => self::getDiskUsage(), 'metric_value' => 'disk_usage'));
 }
开发者ID:rukzuk,项目名称:rukzuk,代码行数:4,代码来源:DiskUsageHelper.php

示例9: logImport

 protected function logImport($actionName, array $importData, $info)
 {
     if (isset($importData['importId'])) {
         $info['importId'] = $importData['importId'];
     }
     if (isset($importData['websiteId'])) {
         $info['websiteId'] = $importData['websiteId'];
     }
     if (isset($importData['conflict']) && is_array($importData['conflict'])) {
         $info['conflict'] = array();
         if (isset($importData['conflict']['modules'])) {
             $info['conflict']['modules'] = count($importData['conflict']['modules']);
         }
         if (isset($importData['conflict']['templates'])) {
             $info['conflict']['templates'] = count($importData['conflict']['templates']);
         }
         if (isset($importData['conflict']['templatesnippets'])) {
             $info['conflict']['templatesnippets'] = count($importData['conflict']['templatesnippets']);
         }
         if (isset($importData['conflict']['media'])) {
             $info['conflict']['media'] = count($importData['conflict']['media']);
         }
     }
     $info['imported'] = array();
     if (isset($importData['modules'])) {
         $info['imported']['modules'] = count($importData['modules']);
     }
     if (isset($importData['templates'])) {
         $info['imported']['templates'] = count($importData['templates']);
     }
     if (isset($importData['templatesnippets'])) {
         $info['imported']['templatesnippets'] = count($importData['templatesnippets']);
     }
     if (isset($importData['pages'])) {
         $info['imported']['pages'] = count($importData['pages']);
     }
     if (isset($importData['media'])) {
         $info['imported']['media'] = count($importData['media']);
     }
     if (isset($importData['usergroups'])) {
         $info['imported']['usergroups'] = count($importData['usergroups']);
     }
     if (isset($importData['website'])) {
         $info['imported']['website'] = count($importData['website']);
     }
     Registry::getActionLogger()->logAction($actionName, $info);
 }
开发者ID:rukzuk,项目名称:rukzuk,代码行数:47,代码来源:ImportController.php

示例10: moveAction

 /**
  * Verschiebt eine Page innerhalb der Website-Navigation
  */
 public function moveAction()
 {
     $validatedRequest = $this->getValidatedRequest('Page', 'Move');
     // darf page geloescht werden?
     $check = array('id' => $validatedRequest->getId(), 'websiteId' => $validatedRequest->getWebsiteId());
     $this->getBusiness()->checkUserRights('createChildren', $check);
     // darf page an neuer stelle eingebunden werden?
     $check = array('id' => $validatedRequest->getParentId(), 'websiteId' => $validatedRequest->getWebsiteId());
     $this->getBusiness()->checkUserRights('createChildren', $check);
     $navigation = $this->getBusiness()->movePageInNavigation($validatedRequest->getId(), $validatedRequest->getWebsiteId(), $validatedRequest->getParentId(), $validatedRequest->getInsertBeforeId());
     Registry::getActionLogger()->logAction(PageBusiness::PAGE_MOVE_ACTION, array('websiteId' => $validatedRequest->getWebsiteId(), 'id' => $validatedRequest->getId(), 'parentId' => $validatedRequest->getParentId(), 'beforeId' => $validatedRequest->getInsertBeforeId()));
     $this->responseData->setData(new Response\Move($navigation));
 }
开发者ID:rukzuk,项目名称:rukzuk,代码行数:16,代码来源:PageController.php

示例11: updatecontentAction

 /**
  * @SWG\Api(
  *   path="/website/updatecontent",
  *   @SWG\Operation(
  *        method="GET, POST",
  *        summary="Update all contents of the website",
  *        notes="Updates all contents of the website with the given id.",
  *        type="WebsiteUpdateContent",
  *        nickname="UpdateContent")
  * ))
  */
 public function updatecontentAction()
 {
     /** @var \Cms\Request\Website\UpdateContent $validateRequest */
     $validateRequest = $this->getValidatedRequest('Website', 'UpdateContent');
     $websiteId = $validateRequest->getProperty('websiteid');
     $this->getBusiness()->checkUserRights('updatecontent', array('websiteId' => $websiteId));
     $this->getBusiness('Lock')->removeLocksByWebsiteId($websiteId);
     $this->getBusiness('ContentUpdater')->updateAllContentsOfWebsite($websiteId);
     Registry::getActionLogger()->logAction(WebsiteBusiness::WEBSITE_UPDATE_CONTENT_ACTION, array('websiteId' => $websiteId));
 }
开发者ID:rukzuk,项目名称:rukzuk,代码行数:21,代码来源:WebsiteController.php


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