getAllLinearVersions() public method

TODO: implement labels once jackalope implements them, until then labels will be an empty array. TODO: implement limit
public getAllLinearVersions ( object $document, integer $limit ) : array
$document object the document of which to get the version history
$limit integer an optional limit to only get the latest $limit information
return array of => array("name" => , "labels" => , "created" => ) oldest version first
Beispiel #1
0
 /**
  * {@inheritDoc}
  */
 public function getAllLinearVersions($document, $limit = -1)
 {
     if (!is_object($document)) {
         throw new InvalidArgumentException('Parameter $document needs to be an object, ' . gettype($document) . ' given');
     }
     $this->errorIfClosed();
     return $this->unitOfWork->getAllLinearVersions($document, $limit);
 }
 /**
  * Get the version history information for a document
  *
  * labels will be an empty array.
  *
  * @param object $document the document of which to get the version history
  * @param int $limit an optional limit to only get the latest $limit information
  *
  * @return array of <versionname> => array("name" => <versionname>, "labels" => <array of labels>, "created" => <DateTime>)
  *         oldest version first
  */
 public function getAllLinearVersions($document, $limit = -1)
 {
     if (!is_object($document)) {
         throw new \InvalidArgumentException(gettype($document));
     }
     $this->errorIfClosed();
     return $this->unitOfWork->getAllLinearVersions($document, $limit);
 }
Beispiel #3
0
 /**
  * Get the version history information for a document
  *
  * labels will be an empty array.
  *
  * @param object $document the document of which to get the version history
  * @param int $limit an optional limit to only get the latest $limit information
  *
  * @return array of <versionname> => array("name" => <versionname>, "labels" => <array of labels>, "created" => <DateTime>)
  *         oldest version first
  */
 public function getAllLinearVersions($document, $limit = -1)
 {
     $this->errorIfClosed();
     return $this->unitOfWork->getAllLinearVersions($document, $limit);
 }