Show
Ignore:
Timestamp:
10/01/08 21:02:13 (3 months ago)
Author:
nowelium
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/php/misc/Hermit/src/Hermit/statement/HermitStatement.php

    r19344 r20387  
    1111        $this->statement = $statement; 
    1212    } 
     13    public function getSqlParameter(){ 
     14        return $this->parameter; 
     15    } 
    1316    public function execute($parameterValue = array()){ 
    1417        $this->parameter->bind($this->statement, $parameterValue); 
    1518        return $this->statement->execute(); 
     19    } 
     20    public function fetch(){ 
     21        $args = func_get_args(); 
     22        $c = count($args); 
     23        if($c < 1){ 
     24            return $this->statement->fetch(); 
     25        } 
     26        if($c < 2){ 
     27            return $this->statement->fetch($args[0]); 
     28        } 
     29        return call_user_func_array(array($this->statement, 'fetch'), $args); 
    1630    } 
    1731    public function __call($name, $params){