Exemplo n.º 1
0
 /**
  * Retrieve an array of all document titles of a document in a certain server
  * (publication) state associated with the corresponding document id.
  * This array is sorted by authors (first one only)
  *
  * @param  string  $state        Document state to select, defaults to "published", returning all states if set to NULL.
  * @param  string  $sort_reverse Optional indicator for list order: 1 = descending; else ascending order.  Defaults to 0.
  * @return array array with all ids of the entries in the desired order.
  *
  * @deprecated
  */
 public static function getAllDocumentsByAuthorsByState($state, $sort_reverse = '0')
 {
     $finder = new Opus_DocumentFinder();
     if (isset($state)) {
         $finder->setServerState($state);
     }
     $finder->orderByAuthorLastname($sort_reverse != 1);
     return $finder->ids();
 }