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); }
/** * @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); }
/** * */ public function __construct(SimuResource $simuresource, $param, $userIds) { $this->simuresource = $simuresource; $this->userIds = $userIds; $this->details = array('simuparam1' => $param); parent::__construct($simuresource->getResourceNode(), $this->details); }
/** * @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); }
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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @param \Claroline\ForumBundle\Entity\Message $message * @param string $oldContent * @param string $newContent */ public function __construct(Message $message, $oldContent, $newContent) { $details = array('message' => array('id' => $message->getId(), 'old_content' => $oldContent, 'new_content' => $newContent), 'subject' => array('id' => $message->getSubject()->getId()), 'category' => array('id' => $message->getSubject()->getCategory()->getId()), 'forum' => array('id' => $message->getSubject()->getCategory()->getForum()->getId())); parent::__construct($message->getSubject()->getCategory()->getForum()->getResourceNode(), $details); }
/** * @param BlogOptions $blogOptions * @param array $changeSet */ public function __construct(BlogOptions $blogOptions, $changeSet) { $blog = $blogOptions->getBlog(); $details = array('blog' => array('blog' => $blog->getId(), 'options' => json_encode($blogOptions), 'changeSet' => $changeSet)); parent::__construct($blog->getResourceNode(), $details); }
/** * @param Wiki $wiki * @param Section $section * @param array $changeSet */ public function __construct(Wiki $wiki, Section $section, $changeSet) { $details = array('section' => array('wiki' => $wiki->getId(), 'id' => $section->getId(), 'title' => $section->getActiveContribution()->getTitle(), 'text' => $section->getActiveContribution()->getText(), 'visible' => $section->getVisible(), 'changeSet' => $changeSet)); parent::__construct($wiki->getResourceNode(), $details); }
/** * @param Lesson $lesson * @param Chapter $chapter * @param Chapter $oldparent * @param Chapter $newparent */ public function __construct(Lesson $lesson, Chapter $chapter, Chapter $oldparent, Chapter $newparent) { $details = array('chapter' => array('lesson' => $lesson->getId(), 'chapter' => $chapter->getId(), 'title' => $chapter->getTitle(), 'old_parent' => $oldparent->getTitle(), 'new_parent' => $newparent->getTitle())); parent::__construct($lesson->getResourceNode(), $details); }
/** * @param Dropzone $dropzone * @param mixed $dropzoneChangeSet * @param Criterion $criterion */ public function __construct(Dropzone $dropzone, $dropzoneChangeSet, Criterion $criterion) { $details = array('dropzone' => array('id' => $dropzone->getId(), 'changeSet' => $dropzoneChangeSet), 'criterion' => array('id' => $criterion->getId(), 'instruction' => $criterion->getInstruction())); parent::__construct($dropzone->getResourceNode(), $details); }
/** * @param Lesson $lesson * @param Chapter $chapter */ public function __construct(Lesson $lesson, Chapter $chapter) { $this->lesson = $lesson; $this->details = array('chapter' => array('lesson' => $lesson->getId(), 'chapter' => $chapter->getId(), 'title' => $chapter->getTitle())); parent::__construct($lesson->getResourceNode(), $this->details); }
/** * @param Wiki $wiki * @param Section $section */ public function __construct(Wiki $wiki, Section $section) { $details = array('section' => array('wiki' => $wiki->getId(), 'id' => $section->getId(), 'title' => $section->getActiveContribution()->getTitle(), 'text' => $section->getActiveContribution()->getText(), 'author' => $section->getAuthor()->getFirstName() . ' ' . $section->getAuthor()->getLastName())); parent::__construct($wiki->getResourceNode(), $details); }
/** * @param Post $post */ public function __construct(Post $post) { $blog = $post->getBlog(); $details = array('post' => array('blog' => $blog->getId(), 'title' => $post->getTitle(), 'slug' => $post->getSlug(), 'author' => $post->getAuthor()->getFirstName() . ' ' . $post->getAuthor()->getLastName())); parent::__construct($blog->getResourceNode(), $details); }
/** * @param Dropzone $dropzone * @param Drop $drop */ public function __construct(Dropzone $dropzone, Drop $drop) { $details = array('dropzone' => array('id' => $dropzone->getId()), 'drop' => array('id' => $drop->getId())); parent::__construct($dropzone->getResourceNode(), $details); }
/** * @param Subject $subject */ public function __construct(Subject $subject) { $details = array('subject' => array('id' => $subject->getId(), 'title' => $subject->getTitle()), 'category' => array('id' => $subject->getCategory()->getId()), 'forum' => array('id' => $subject->getCategory()->getForum()->getId())); parent::__construct($subject->getCategory()->getForum()->getResourceNode(), $details); }