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


PHP AbstractLogResourceEvent::__construct方法代码示例

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


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


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