public function getBy($field, $cond = UNDEFINED, $value = UNDEFINED)
    {
        $data = $this->data;
        $id = $this->id;

        $this->tryLoadBy($field, $cond, $value);
        $row = $this->data;

        $this->data = $data;
        $this->id = $id;

        return $row;
    }
public function getBy($field, $cond = UNDEFINED, $value = UNDEFINED)
    {
        $data = $this->data;
        $id = $this->id;

        $this->tryLoadBy($field, $cond, $value);
        $row = $this->data;

        $this->data = $data;
        $this->id = $id;

        return $row;
    }
public function getBy ( $ field , $ cond = UNDEFINED , $ value = UNDEFINED ) { $ data = $ this -> data ; $ id = $ this -> id ; $ this -> tryLoadBy ( $ field , $ cond , $ value ) ; $ row = $ this -> data ; $ this -> data = $ data ; $ this -> id = $ id ; return $ row ; }
Loads data record and return array of that data. Will not affect currently loaded record.
Loads data record and return array of that data . Will not affect currently loaded record .