Exemplo n.º 1
0
 /**
  * Define the set of valid contexts that the search form operates on.
  *
  * @return array
  *   the valid context set and the titles
  */
 public static function &validContext()
 {
     if (!self::$_validContext) {
         self::$_validContext = array('smog' => 'Show members of group', 'amtg' => 'Add members to group', 'basic' => 'Basic Search', 'search' => 'Search', 'builder' => 'Search Builder', 'advanced' => 'Advanced Search', 'custom' => 'Custom Search');
     }
     return self::$_validContext;
 }
Exemplo n.º 2
0
 /**
  * define the set of valid contexts that the search form operates on
  *
  * @return array the valid context set and the titles
  * @access protected
  * @static
  */
 static function &validContext()
 {
     if (!self::$_validContext) {
         self::$_validContext = array('search' => 'Search', 'smog' => 'Show members of group', 'amtg' => 'Add members to group');
     }
     return self::$_validContext;
 }