/** * Execute test returing result:value. * @return 0/1 in ['result']= */ public function execute() { $isFan = Api_Bo_Pages::isFan($this->getUserId(), $this->uid, $this->page_id); $response = array(); $response['result'] = $isFan ? '1' : '0'; return $response; }
/** * Execute the users.hasAppPermission method */ public function execute() { $hasApp = Api_Bo_Pages::hasApp($this->page_id, $this->getAppId()); $response = array(); $response['result'] = $hasApp ? '1' : '0'; return $response; }
/** * Execute test returing result:value. * @return 0/1 in ['result']= */ public function execute() { return Api_Bo_Pages::getPagesInfo($this->fields, $this->getUserId(), $this->uid, $this->pageIds, $this->getAppId()); }