/** * Constructor * * @param type $source * (Optional) Defaults to NULL. Can be a string, in which case you need to set $is_file to FALSE. Otherwise the string should be a path to a file. @param bool $is_file */ public function __construct($source = NULL, $is_file = TRUE) { $this->dirname = ''; if ($source && $is_file) { $info = pathinfo($source); $this->dirname = $info['dirname']; } parent::__construct($source, $is_file); $this->imports = array(); }
/** * Constructor * * @param type $source * (Optional) Defaults to NULL. */ public function __construct($source = NULL, $is_file = TRUE) { parent::__construct($source, $is_file); $this->variables = array(); $this->declarations = array(); }