public function __construct($filename, $has_header = true, $row_size = 0, $delemiter = ',') { parent::__construct($filename); $this->setDelimiter($delemiter); $this->setRowSize($row_size); $this->row_counter = 0; //$this->header=($has_header)?fgetcsv($this->fh,$this->row_size,$this->delimiter):array(); if ($has_header) { $this->header = array_map('trim', fgetcsv($this->fh, $this->row_size, $this->delimiter)); $this->column_count = count($this->header); } else { $this->header = array(); $this->column_count = 0; } }
function __construct($pda, $strategy = null) { parent::__construct($pda); $this->call = $this->action; //array(); $this->strategy = $strategy ? $strategy : new default_parser_strategy(); /* foreach($this->action as $k => $body) { $this->call[$k] = create_function( '$tokens', preg_replace('/{(\d+)}/', '$tokens[\\1]', $body)); } */ }