MDL-24276 "static abstract" combination is deprecated since PHP 5.2, replacing with our coding_style exception

This commit is contained in:
Petr Skoda
2010-09-19 18:43:52 +00:00
parent dc157e0903
commit 7c109ea3f0
12 changed files with 61 additions and 23 deletions
+5 -3
View File
@@ -42,12 +42,14 @@ require_once($CFG->libdir.'/filelib.php');
* @copyright Dan Poltawski <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
abstract class google_auth_request extends curl{
abstract class google_auth_request extends curl {
protected $token = '';
private $persistantheaders = array();
// Must be overriden with the authorization header name
public abstract static function get_auth_header_name();
// Must be overridden with the authorization header name
public static function get_auth_header_name() {
throw new coding_exception('get_auth_header_name() method needs to be overridden in each subclass of google_auth_request');
}
protected function request($url, $options = array()){
if($this->token){