createdOn = $now; $this->modifiedOn = $now; $this->publicatedOn = $now; $this->accumulateScormTime = 1; $this->accumulateWorkTime = 0; $this->author = ''; $this->autolaunch = 0; $this->contentLocal = 'local'; $this->contentMaker = 'chamilo'; $this->contentLicense = ''; $this->defaultEncoding = 'UTF-8'; $this->defaultViewMod = 'embedded'; $this->description = ''; $this->displayOrder = 0; $this->debug = false; $this->forceCommit = false; $this->hideTocFrame = false; $this->jsLib = ''; $this->maxAttempts = 0; $this->preventReinit = true; $this->path = ''; $this->prerequisite = 0; $this->seriousgameMode = false; $this->subscribeUsers = 0; $this->useMaxScore = 1; $this->theme = ''; $this->items = new ArrayCollection(); } public function __toString(): string { return $this->getName(); } public function setLpType(int $lpType): self { $this->lpType = $lpType; return $this; } /** * Get lpType. * * @return int */ public function getLpType() { return $this->lpType; } public function setName(string $name): self { $this->name = $name; return $this; } public function getName(): string { return $this->name; } public function setRef(string $ref): self { $this->ref = $ref; return $this; } /** * Get ref. * * @return string */ public function getRef() { return $this->ref; } public function setDescription(string $description): self { $this->description = $description; return $this; } public function getDescription(): ?string { return $this->description; } public function setPath(string $path): self { $this->path = $path; return $this; } /** * Get path. * * @return string */ public function getPath() { return $this->path; } public function setForceCommit(bool $forceCommit): self { $this->forceCommit = $forceCommit; return $this; } /** * Get forceCommit. * * @return bool */ public function getForceCommit() { return $this->forceCommit; } public function setDefaultViewMod(string $defaultViewMod): self { $this->defaultViewMod = $defaultViewMod; return $this; } /** * Get defaultViewMod. * * @return string */ public function getDefaultViewMod() { return $this->defaultViewMod; } public function setDefaultEncoding(string $defaultEncoding): self { $this->defaultEncoding = $defaultEncoding; return $this; } /** * Get defaultEncoding. * * @return string */ public function getDefaultEncoding() { return $this->defaultEncoding; } public function setDisplayOrder(int $displayOrder): self { $this->displayOrder = $displayOrder; return $this; } /** * Get displayOrder. * * @return int */ public function getDisplayOrder() { return $this->displayOrder; } public function setContentMaker(string $contentMaker): self { $this->contentMaker = $contentMaker; return $this; } /** * Get contentMaker. * * @return string */ public function getContentMaker() { return $this->contentMaker; } public function setContentLocal(string $contentLocal): self { $this->contentLocal = $contentLocal; return $this; } /** * Get contentLocal. * * @return string */ public function getContentLocal() { return $this->contentLocal; } public function setContentLicense(string $contentLicense): self { $this->contentLicense = $contentLicense; return $this; } /** * Get contentLicense. * * @return string */ public function getContentLicense() { return $this->contentLicense; } public function setPreventReinit(bool $preventReinit): self { $this->preventReinit = $preventReinit; return $this; } /** * Get preventReinit. * * @return bool */ public function getPreventReinit() { return $this->preventReinit; } public function setJsLib(string $jsLib): self { $this->jsLib = $jsLib; return $this; } /** * Get jsLib. * * @return string */ public function getJsLib() { return $this->jsLib; } public function setDebug(bool $debug): self { $this->debug = $debug; return $this; } /** * Get debug. * * @return bool */ public function getDebug() { return $this->debug; } public function setTheme(string $theme): self { $this->theme = $theme; return $this; } /** * Get theme. * * @return string */ public function getTheme() { return $this->theme; } public function setAuthor(string $author): self { $this->author = $author; return $this; } /** * Get author. * * @return string */ public function getAuthor() { return $this->author; } public function setPrerequisite(int $prerequisite): self { $this->prerequisite = $prerequisite; return $this; } /** * Get prerequisite. * * @return int */ public function getPrerequisite() { return $this->prerequisite; } public function setHideTocFrame(bool $hideTocFrame): self { $this->hideTocFrame = $hideTocFrame; return $this; } /** * Get hideTocFrame. * * @return bool */ public function getHideTocFrame() { return $this->hideTocFrame; } public function setSeriousgameMode(bool $seriousgameMode): self { $this->seriousgameMode = $seriousgameMode; return $this; } /** * Get seriousgameMode. * * @return bool */ public function getSeriousgameMode() { return $this->seriousgameMode; } public function setUseMaxScore(int $useMaxScore): self { $this->useMaxScore = $useMaxScore; return $this; } /** * Get useMaxScore. * * @return int */ public function getUseMaxScore() { return $this->useMaxScore; } public function setAutolaunch(int $autolaunch): self { $this->autolaunch = $autolaunch; return $this; } /** * Get autolaunch. * * @return int */ public function getAutolaunch() { return $this->autolaunch; } public function setCreatedOn(DateTime $createdOn): self { $this->createdOn = $createdOn; return $this; } /** * Get createdOn. * * @return DateTime */ public function getCreatedOn() { return $this->createdOn; } public function setModifiedOn(DateTime $modifiedOn): self { $this->modifiedOn = $modifiedOn; return $this; } /** * Get modifiedOn. * * @return DateTime */ public function getModifiedOn() { return $this->modifiedOn; } public function setPublicatedOn(DateTime $publicatedOn): self { $this->publicatedOn = $publicatedOn; return $this; } public function getPublicatedOn(): ?DateTime { return $this->publicatedOn; } public function setExpiredOn(?DateTime $expiredOn): self { $this->expiredOn = $expiredOn; return $this; } public function getExpiredOn(): ?DateTime { return $this->expiredOn; } public function getCategory(): ?CLpCategory { return $this->category; } public function hasCategory(): bool { return null !== $this->category; } public function setCategory(CLpCategory $category = null): self { $this->category = $category; return $this; } public function getAccumulateScormTime(): int { return $this->accumulateScormTime; } public function setAccumulateScormTime(int $accumulateScormTime): self { $this->accumulateScormTime = $accumulateScormTime; return $this; } public function getAccumulateWorkTime(): int { return $this->accumulateWorkTime; } public function setAccumulateWorkTime(int $accumulateWorkTime): self { $this->accumulateWorkTime = $accumulateWorkTime; return $this; } public function getMaxAttempts(): int { return $this->maxAttempts; } /** * @return CLpItem[]|Collection */ public function getItems() { return $this->items; } /** * Get iid. * * @return int */ public function getIid() { return $this->iid; } /** * Get subscribeUsers. * * @return int */ public function getSubscribeUsers() { return $this->subscribeUsers; } public function setSubscribeUsers(int $value): self { $this->subscribeUsers = $value; return $this; } public function getForum(): ?CForum { return $this->forum; } public function hasForum(): bool { return null !== $this->forum; } public function setForum(CForum $forum): self { $this->forum = $forum; return $this; } public function getAsset(): ?Asset { return $this->asset; } public function hasAsset(): bool { return null !== $this->asset; } public function setAsset(?Asset $asset): self { $this->asset = $asset; return $this; } public function getResourceIdentifier(): int { return $this->getIid(); } public function getResourceName(): string { return $this->getName(); } public function setResourceName(string $name): self { return $this->setName($name); } }