Beispiel #1
0
 /**
  * @abstract Gets the a specified list.  Requires at least one (1) listID.
  *  
  * @return The list as indicated by the provided listID.  If more than one (1) listID is provided,
  * an associative array will be returned with listID's as indexes.
  */
 public static function build()
 {
     $listIDs = func_get_args();
     $c = count($listIDs);
     $lists = array();
     // No id's specified
     if ($c == 0) {
         return array(false);
     }
     // Get the list for each ID provided
     foreach ($listIDs as $listID) {
         $lists[$listID] = ListBuilder::handle($listID, HANDLE_GET);
     }
     // If only 1 ID was provided, return just that list; otherwise, return an array of lists.
     return $c == 1 ? $lists[$listIDs[0]] : $lists;
 }