/** * The authentication method specifies if an API task may be executed or not. * This method may be different in subordinate classes * * @return bool */ public function auth() { if (isset($_REQUEST['token'])) { return Cryption::validateApiToken($_REQUEST['token']); } return false; }