Example #1
0
 /**
  * Returns all possible lists to choose from as an associative array
  *
  * @return array The array of lists
  */
 public static function getListOptions()
 {
     $returnme = array();
     $returnme[] = array('0' => 'NONE AVAILABLE! Gibts net!');
     $returnme[] = ArrayHelper::map(Page::findBySQL('SELECT DISTINCT id, name FROM tbl_pages WHERE (special IS NULL OR special <> "-1") ORDER BY name')->all(), 'id', 'name');
     return $returnme;
 }