Esempio n. 1
0
 public function init()
 {
     parent::init();
     if (!OW::getUser()->isAuthenticated()) {
         throw new ApiAccessException(ApiAccessException::TYPE_NOT_AUTHENTICATED);
     }
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
     $pm = OW::getPluginManager();
     self::$basicNames[] = OW::getConfig()->getValue('base', 'display_name_question');
     self::$basicNames[] = 'birthdate';
     self::$basicNames[] = 'sex';
     if ($pm->isPluginActive('googlelocation')) {
         self::$basicNames[] = 'googlemap_location';
     }
     self::$searchFilledNames[] = 'sex';
     if ($pm->isPluginActive('googlelocation')) {
         self::$searchFilledNames[] = 'googlemap_location';
     }
     self::$searchFilledNames[] = 'relationship';
     self::$searchFilledNames[] = 'birthdate';
     self::$searchBasicNames[] = 'sex';
     self::$searchBasicNames[] = 'match_sex';
     if ($pm->isPluginActive('googlelocation')) {
         self::$searchBasicNames[] = 'googlemap_location';
     }
     self::$searchBasicNames[] = 'relationship';
     self::$searchBasicNames[] = 'birthdate';
 }
Esempio n. 3
0
 public function __construct()
 {
     parent::__construct();
     self::$basicNames = array(OW::getConfig()->getValue('base', 'display_name_question'), 'birthdate', 'sex', 'googlemap_location');
     self::$priorityNames = array('match_sex', 'aboutme', 'relationship', 'aboutmymatch');
 }
Esempio n. 4
0
 public function __construct()
 {
     parent::__construct();
 }