|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 00006 class HTMLPurifier_Token { 00007 public $line; 00008 public $col; 00015 public $armor = array(); 00016 00020 public $skip; 00021 public $rewind; 00022 public $carryover; 00023 00024 public function __get($n) { 00025 if ($n === 'type') { 00026 trigger_error('Deprecated type property called; use instanceof', E_USER_NOTICE); 00027 switch (get_class($this)) { 00028 case 'HTMLPurifier_Token_Start': return 'start'; 00029 case 'HTMLPurifier_Token_Empty': return 'empty'; 00030 case 'HTMLPurifier_Token_End': return 'end'; 00031 case 'HTMLPurifier_Token_Text': return 'text'; 00032 case 'HTMLPurifier_Token_Comment': return 'comment'; 00033 default: return null; 00034 } 00035 } 00036 } 00037 00041 public function position($l = null, $c = null) { 00042 $this->line = $l; 00043 $this->col = $c; 00044 } 00045 00049 public function rawPosition($l, $c) { 00050 if ($c === -1) $l++; 00051 $this->line = $l; 00052 $this->col = $c; 00053 } 00054 00055 } 00056 00057 // vim: et sw=4 sts=4