public function getFieldTitle($key)
    {
        $schema = $this->getModelSchema();

        if (array_key_exists('title', $schema[$key]))
            return $schema[$key]['title'];

        return $key;
    }
public function getFieldTitle($key)
    {
        $schema = $this->getModelSchema();

        if (array_key_exists('title', $schema[$key]))
            return $schema[$key]['title'];

        return $key;
    }
public function getFieldTitle ( $ key ) { $ schema = $ this -> getModelSchema ( ) ; if ( array_key_exists ( 'title' , $ schema [ $ key ] ) ) return $ schema [ $ key ] [ 'title' ] ; return $ key ; }
Returns the field title.

@param string $key The name of the field

@return string or the field name if there is no title
Returns the field title .