/** * @return mixed|void * @throws \ForbiddenException */ public function exec() { if (UsersLogin::isLogined()) { $this->userSession = UsersLogin::getCurrentSession(); return parent::exec(); } else { throw new ForbiddenException('Need active session'); } }
/** * @expectedException \Extasy\Api\Exception */ public function testSetWrongCallback() { $method = new ApiOperation(); $method->setCallback('unknownFunc'); }
public function __construct($data = array()) { parent::__construct($data); $this->requiredACLRights = array(self::RightName); }