public function init($table, $data = array(), $isNew = true)
    {
        $class = $this->getRecordClass($table);
        return new $class(array(
            'wei'       => $this->wei,
            'db'        => $this,
            'table'     => $table,
            'isNew'     => $isNew,
            'data'      => $data,
        ));
    }
public function init($table, $data = array(), $isNew = true)
    {
        $class = $this->getRecordClass($table);
        return new $class(array(
            'wei'       => $this->wei,
            'db'        => $this,
            'table'     => $table,
            'isNew'     => $isNew,
            'data'      => $data,
        ));
    }
public function init ( $ table , $ data = array ( ) , $ isNew = true ) { $ class = $ this -> getRecordClass ( $ table ) ; return new $ class ( array ( 'wei' => $ this -> wei , 'db' => $ this , 'table' => $ table , 'isNew' => $ isNew , 'data' => $ data , ) ) ; }
Init a record instance

@param string $table The name of database table
@param array $data The data for table record
@param bool $isNew Whether it's a new record and have not save to database
@return Record
Init a record instance