Sprig_Core::pk PHP 메소드

pk() 공개 메소드

Returns the primary key of the model, optionally with a table name.
public pk ( $table = NULL ) : string
리턴 string
    public function pk($table = NULL)
    {
        if ($table) {
            if ($table === TRUE) {
                $table = $this->_table;
            }
            return $table . '.' . $this->_primary_key;
        }
        return $this->_primary_key;
    }