Sprig_Core::tk PHP Method

tk() public method

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