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