public function getMyKey($data = null)
    {
        $key = null;
        if (is_null($data)) {
            $data = $this->getData();
        }
        if (isset($data) && isset($data[$this->keyColumn])) {
            $key = $data[$this->keyColumn];
        }

        return $key;
    }
public function getMyKey($data = null)
    {
        $key = null;
        if (is_null($data)) {
            $data = $this->getData();
        }
        if (isset($data) && isset($data[$this->keyColumn])) {
            $key = $data[$this->keyColumn];
        }

        return $key;
    }
public function getMyKey ( $ data = null ) { $ key = null ; if ( is_null ( $ data ) ) { $ data = $ this -> getData ( ) ; } if ( isset ( $ data ) && isset ( $ data [ $ this -> keyColumn ] ) ) { $ key = $ data [ $ this -> keyColumn ] ; } return $ key ; }
Gives you value of KEY Column

@param array $data data z nichž se vrací hodnota klíče

@return int key column value
Gives you value of KEY Column