Exemple #1
0
 /**
  * Returns all document that are in a specific server (publication) state.
  *
  * @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 The list of documents in the specified state.
  *
  * @deprecated
  */
 public static function getAllIdsByState($state = 'published', $sort_reverse = '0')
 {
     $finder = new Opus_DocumentFinder();
     if (isset($state)) {
         $finder->setServerState($state);
     }
     $finder->orderById($sort_reverse != 1);
     return $finder->ids();
 }