/** * Changes main location of content identified by given $contentId to location identified by given $locationId * * Updates ezcontentobject_tree and eznode_assignment tables (eznode_assignment for content current version number). * * @param mixed $contentId * @param mixed $locationId * * @return void */ public function changeMainLocation($contentId, $locationId) { $this->treeHandler->changeMainLocation($contentId, $locationId); }
/** * Returns the versions for $contentId. * * @param int $contentId * * @return \eZ\Publish\SPI\Persistence\Content\VersionInfo[] */ public function listVersions($contentId) { return $this->treeHandler->listVersions($contentId); }
/** * Test for the removeSubtree() method. * * @covers eZ\Publish\Core\Persistence\Legacy\Content\Location\Handler::removeSubtree * * @return void */ public function testRemoveSubtree() { $handler = $this->getLocationHandler(); $this->treeHandler->expects($this->once())->method("removeSubtree")->with(42); $handler->removeSubtree(42); }
/** * Returns the versions for $contentId. * * Result is returned with oldest version first (sorted by created, alternatively version id if auto increment). * * @param int $contentId * @param mixed|null $status Optional argument to filter versions by status, like {@see VersionInfo::STATUS_ARCHIVED}. * @param int $limit Limit for items returned, -1 means none. * * @return \eZ\Publish\SPI\Persistence\Content\VersionInfo[] */ public function listVersions($contentId, $status = null, $limit = -1) { return $this->treeHandler->listVersions($contentId, $status, $limit); }