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

PHP Log\AbstractLogResourceEvent类代码示例

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

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



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

示例1: __construct

 public function __construct(Step $step, $userIds = [])
 {
     $this->step = $step;
     $this->userIds = $userIds;
     $this->details = ['unlock' => ['path' => $step->getPath()->getId(), 'step' => $step->getId(), 'stepname' => $step->getName()]];
     parent::__construct($step->getPath()->getResourceNode(), $this->details);
 }
开发者ID:claroline,项目名称:distribution,代码行数:7,代码来源:LogStepUnlockEvent.php


示例2: __construct

 /**
  * @param \Icap\DropzoneBundle\Entity\Dropzone $dropzone
  * @param \Icap\DropzoneBundle\Entity\Drop $drop
  */
 public function __construct(Dropzone $dropzone, Drop $drop)
 {
     $this->dropzone = $dropzone;
     $this->drop = $drop;
     $this->details = array('drop' => $drop, 'dropGrade' => $drop->getCalculatedGrade(), 'resultMax' => 20, 'dropzoneId' => $dropzone->getId(), 'dropId' => $drop->getId());
     parent::__construct($dropzone->getResourceNode(), $this->details);
 }
开发者ID:ngodfraind,项目名称:DropZoneBundle,代码行数:11,代码来源:LogDropGradeAvailableEvent.php


示例3: __construct

 /**
  *
  */
 public function __construct(SimuResource $simuresource, $param, $userIds)
 {
     $this->simuresource = $simuresource;
     $this->userIds = $userIds;
     $this->details = array('simuparam1' => $param);
     parent::__construct($simuresource->getResourceNode(), $this->details);
 }
开发者ID:CPAlex,项目名称:simuresource,代码行数:10,代码来源:LogSimuResourceEditEvent.php


示例4: __construct

 /**
  * @param Wiki         $wiki
  * @param Section      $section
  * @param Contribution $contribution
  */
 public function __construct(Dropzone $dropzone, Drop $drop, Correction $correction, $roleManager)
 {
     $this->dropzone = $dropzone;
     $this->role_manager = $roleManager;
     $this->details = array('report' => array('drop' => $drop, 'correction' => $correction, 'report_comment' => $correction->getReportComment(), 'dropzoneId' => $dropzone->getId(), 'dropId' => $drop->getId(), 'correctionId' => $correction->getId()));
     parent::__construct($dropzone->getResourceNode(), $this->details);
 }
开发者ID:claroline,项目名称:distribution,代码行数:12,代码来源:LogDropReportEvent.php


示例5: __construct

 public function __construct(Post $post)
 {
     $this->blog = $post->getBlog();
     $this->post = $post;
     $this->details = array('post' => array('blog' => $this->blog->getId(), 'title' => $post->getTitle(), 'slug' => $post->getSlug(), 'published' => $post->isPublished(), 'author' => $post->getAuthor()->getFirstName() . ' ' . $post->getAuthor()->getLastName(), 'authorId' => $post->getAuthor()->getId()));
     parent::__construct($this->blog->getResourceNode(), $this->details);
 }
开发者ID:claroline,项目名称:distribution,代码行数:7,代码来源:LogPostPublishEvent.php


示例6: __construct

 /**
  * @param Wiki         $wiki
  * @param Section      $section
  * @param Contribution $contribution
  */
 public function __construct(Dropzone $dropzone, $newstate, $userIds)
 {
     $this->dropzone = $dropzone;
     $this->newState = $newstate;
     $this->userIds = $userIds;
     $this->details = array('newState' => $newstate);
     parent::__construct($dropzone->getResourceNode(), $this->details);
 }
开发者ID:claroline,项目名称:distribution,代码行数:13,代码来源:LogDropzoneManualStateChangedEvent.php


示例7: __construct

 /**
  * @param Mark $mark
  * @param null $oldMark
  */
 public function __construct(Mark $mark, $oldMark = null)
 {
     $result = $mark->getResult();
     $receiverUser = $mark->getUser();
     $details = ['receiverUser' => ['firstName' => $receiverUser->getFirstName(), 'lastName' => $receiverUser->getLastName(), 'username' => $receiverUser->getUsername()], 'result' => $mark->getValue(), 'update' => $oldMark !== null, 'mark' => ['id' => $mark->getId(), 'value' => $mark->getValue(), 'oldValue' => $oldMark]];
     parent::__construct($result->getResourceNode(), $details);
     $this->setReceiver($receiverUser);
 }
开发者ID:claroline,项目名称:distribution,代码行数:12,代码来源:LogResultsNewMarkEvent.php


示例8: __construct

 /**
  * @param Post    $post
  * @param Comment $comment
  */
 public function __construct(Post $post, Comment $comment, $changeSet)
 {
     $this->blog = $post->getBlog();
     $this->comment = $comment;
     $this->post = $post;
     $this->details = array('post' => array('blog' => $this->blog->getId(), 'title' => $post->getTitle(), 'slug' => $post->getSlug()), 'comment' => array('id' => $comment->getId(), 'content' => $comment->getMessage(), 'changeSet' => $changeSet, 'published' => $comment->isPublished(), 'author' => $comment->getAuthor()->getFirstName() . " " . $post->getAuthor()->getLastName(), 'authorId' => $comment->getAuthor()->getId()));
     parent::__construct($this->blog->getResourceNode(), $this->details);
 }
开发者ID:rbs-aferreira,项目名称:BlogBundle,代码行数:12,代码来源:LogCommentUpdateEvent.php


示例9: __construct

 /**
  * @param Dropzone   $dropzone
  * @param Drop       $drop
  * @param Correction $correction
  */
 public function __construct(Dropzone $dropzone, Drop $drop, Correction $correction)
 {
     $documentsDetails = array();
     foreach ($drop->getDocuments() as $document) {
         $documentsDetails[] = $document->toArray();
     }
     $details = array('dropzone' => array('id' => $dropzone->getId()), 'drop' => array('id' => $drop->getId(), 'documents' => $documentsDetails, 'owner' => array('id' => $drop->getUser()->getId(), 'lastName' => $drop->getUser()->getLastName(), 'firstName' => $drop->getUser()->getFirstName(), 'username' => $drop->getUser()->getUsername())), 'correction' => $correction->toArray(false));
     parent::__construct($dropzone->getResourceNode(), $details);
 }
开发者ID:claroline,项目名称:distribution,代码行数:14,代码来源:LogCorrectionStartEvent.php


示例10: __construct

 /**
  * @param Dropzone $dropzone
  * @param Drop     $drop
  * @param Document $document
  */
 public function __construct(Dropzone $dropzone, Drop $drop, Document $document)
 {
     $documentsDetails = array();
     foreach ($drop->getDocuments() as $document) {
         $documentsDetails[] = $document->toArray();
     }
     $details = array('dropzone' => array('id' => $dropzone->getId()), 'drop' => array('id' => $drop->getId(), 'documents' => $documentsDetails), 'document' => $document->toArray());
     parent::__construct($dropzone->getResourceNode(), $details);
 }
开发者ID:ngodfraind,项目名称:CollecticielBundle,代码行数:14,代码来源:LogDocumentCreateEvent.php


示例11: __construct

 /**
  * @param Dropzone $dropzone
  * @param Drop     $drop
  * @param string   $grade
  */
 public function __construct(Dropzone $dropzone, Drop $drop, $grade)
 {
     $documentsDetails = array();
     foreach ($drop->getDocuments() as $document) {
         $documentsDetails[] = $document->toArray();
     }
     $details = array('dropzone' => array('id' => $dropzone->getId()), 'drop' => array('id' => $drop->getId(), 'documents' => $documentsDetails, 'owner' => array('id' => $drop->getUser()->getId(), 'lastName' => $drop->getUser()->getLastName(), 'firstName' => $drop->getUser()->getFirstName(), 'username' => $drop->getUser()->getUsername())), 'result' => $grade, 'resultMax' => 20);
     parent::__construct($dropzone->getResourceNode(), $details);
 }
开发者ID:ngodfraind,项目名称:DropZoneBundle,代码行数:14,代码来源:LogDropEvaluateEvent.php


示例12: __construct

 /**
  * @param Dropzone $dropzone
  * @param Drop $drop
  * @param $roleManager
  */
 public function __construct(Dropzone $dropzone, Drop $drop, $roleManager)
 {
     $this->dropzone = $dropzone;
     $this->role_manager = $roleManager;
     $documentsDetails = array();
     foreach ($drop->getDocuments() as $document) {
         $documentsDetails[] = $document->toArray();
     }
     $details = array('dropzone' => array('id' => $dropzone->getId()), 'drop' => array('id' => $drop->getId(), 'documents' => $documentsDetails));
     parent::__construct($dropzone->getResourceNode(), $details);
 }
开发者ID:ngodfraind,项目名称:CollecticielBundle,代码行数:16,代码来源:LogDropEndEvent.php


示例13: __construct

 /**
  * @param Wiki         $wiki
  * @param Section      $section
  * @param Contribution $contribution
  */
 public function __construct(Document $document, Dropzone $dropzone, $userIds)
 {
     $this->document = $document;
     $this->dropzone = $dropzone;
     $this->type = $dropzone->getResourceNode()->getName();
     $this->userIds = $userIds;
     $this->details = array();
     // Récupération du nom et du prénom
     $this->firstName = $document->getSender()->getFirstName();
     $this->lastName = $document->getSender()->getLastName();
     parent::__construct($dropzone->getResourceNode(), $this->details);
 }
开发者ID:claroline,项目名称:distribution,代码行数:17,代码来源:LogDropzoneValidateDocumentEvent.php


示例14: __construct

 /**
  * @param Post    $post
  * @param Comment $comment
  */
 public function __construct(Post $post, Comment $comment)
 {
     $author = $comment->getAuthor();
     $blog = $post->getBlog();
     if (null === $author) {
         $author = "Anonyme";
     } else {
         $author = $comment->getAuthor()->getFirstName() . ' ' . $comment->getAuthor()->getLastName();
     }
     $details = array('post' => array('blog' => $blog->getId(), 'title' => $post->getTitle(), 'slug' => $post->getSlug()), 'comment' => array('id' => $comment->getId(), 'author' => $author, 'content' => $comment->getMessage()));
     parent::__construct($blog->getResourceNode(), $details);
 }
开发者ID:rbs-aferreira,项目名称:BlogBundle,代码行数:16,代码来源:LogCommentDeleteEvent.php


示例15: __construct

 /**
  * @param Wiki         $wiki
  * @param Section      $section
  * @param Contribution $contribution
  */
 public function __construct(Dropzone $dropzone, $newstate, $userIds)
 {
     $this->dropzone = $dropzone;
     $this->newState = $dropzone->getResourceNode()->getName();
     $this->userIds = $userIds;
     $this->details = array();
     $this->userId = $dropzone->getDrops()[0]->getUser()->getId();
     // Récupération du nom et du prénom
     $this->firstName = $dropzone->getDrops()[0]->getUser()->getFirstName();
     $this->lastName = $dropzone->getDrops()[0]->getUser()->getLastName();
     parent::__construct($dropzone->getResourceNode(), $this->details);
 }
开发者ID:claroline,项目名称:distribution,代码行数:17,代码来源:LogDropzoneAddDocumentEvent.php


示例16: __construct

 /**
  * @param Wiki         $wiki
  * @param Section      $section
  * @param Contribution $contribution
  */
 public function __construct(Document $document, Dropzone $dropzone, $userIds)
 {
     $this->document = $document;
     // Traitement du paramètre "type" : gestion du cas spécifique du type URL.
     if ($document->getType() == 'url') {
         $this->type = $document->getUrl();
     } elseif (strlen($document->getTitle()) > 0) {
         $this->type = $document->getTitle();
     } else {
         $this->type = $document->getResourceNode()->getName();
     }
     $this->userIds = $userIds;
     $this->details = array();
     // Récupération du nom et du prénom
     $this->firstName = $document->getSender()->getFirstName();
     $this->lastName = $document->getSender()->getLastName();
     parent::__construct($dropzone->getResourceNode(), $this->details);
 }
开发者ID:claroline,项目名称:distribution,代码行数:23,代码来源:LogDropzoneReturnReceiptEvent.php


示例17: __construct

 /**
  * @param Wiki         $wiki
  * @param Section      $section
  * @param Contribution $contribution
  */
 public function __construct(Dropzone $dropzone, $newstate, $userIds)
 {
     $this->dropzone = $dropzone;
     $this->type = $dropzone->getResourceNode()->getName();
     $this->userIds = $userIds;
     // Traitement de la traduction pour CE cas. InnovaERV.
     if ($newstate == 'allowDrop') {
         $this->newState = 'Open';
     }
     if ($newstate == 'finished') {
         $this->newState = 'Closed';
     }
     $this->details = array('newState' => $this->newState);
     $this->userId = $dropzone->getDrops()[0]->getUser()->getId();
     // Récupération du nom et du prénom
     $this->firstName = $dropzone->getDrops()[0]->getUser()->getFirstName();
     $this->lastName = $dropzone->getDrops()[0]->getUser()->getLastName();
     parent::__construct($dropzone->getResourceNode(), $this->details);
 }
开发者ID:claroline,项目名称:distribution,代码行数:24,代码来源:LogDropzoneManualStateChangedEvent.php


示例18: __construct

 /**
  * @param Wiki $wiki
  * @param Section $section
  * @param Contribution $contribution
  */
 public function __construct(Document $document, Dropzone $dropzone, $userIds)
 {
     //        $this->resourceNodeId = $dropzone->getDrops()[0]->getUser()->getId();
     //        $dropId = $document->getDrop()->getId(); //->getDropzone()->getId();
     //var_dump($dp);
     //var_dump($document);die();
     $this->document = $document;
     $this->type = $dropzone->getResourceNode()->getName();
     $this->userIds = $userIds;
     //echo "<pre>";
     //var_dump($this->userIds);
     //echo "</pre>";
     //die();
     $this->details = array();
     // Récupération du nom et du prénom
     $this->firstName = $document->getSender()->getFirstName();
     $this->lastName = $document->getSender()->getLastName();
     //var_dump($this->firstName);
     //var_dump($this->lastName);
     //var_dump($this->type);
     //die();
     parent::__construct($dropzone->getResourceNode(), $this->details);
 }
开发者ID:ngodfraind,项目名称:CollecticielBundle,代码行数:28,代码来源:LogDropzoneValidateDocumentEvent.php


示例19: __construct

 /**
  * @param \Claroline\ForumBundle\Entity\Category $category
  */
 public function __construct(Category $category)
 {
     $details = array('category' => array('id' => $category->getId()), 'forum' => array('id' => $category->getForum()->getId()));
     parent::__construct($category->getForum()->getResourceNode(), $details);
 }
开发者ID:claroline,项目名称:distribution,代码行数:8,代码来源:DeleteCategoryEvent.php


示例20: __construct

 /**
  * @param Dropzone $dropzone
  * @param Drop     $drop
  * @param Document $document
  */
 public function __construct(Dropzone $dropzone, Drop $drop, Document $document)
 {
     $details = array('dropzone' => array('id' => $dropzone->getId()), 'drop' => array('id' => $drop->getId(), 'owner' => array('id' => $drop->getUser()->getId(), 'lastName' => $drop->getUser()->getLastName(), 'firstName' => $drop->getUser()->getFirstName(), 'username' => $drop->getUser()->getUsername())), 'document' => $document->toArray());
     parent::__construct($dropzone->getResourceNode(), $details);
 }
开发者ID:claroline,项目名称:distribution,代码行数:10,代码来源:LogDocumentOpenEvent.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP Persistence\ObjectManager类代码示例发布时间:2022-05-23
下一篇:
PHP Entity\User类代码示例发布时间: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