protected function _getType()
    {
        $name = __d('content', '(unknown)');
        if ($this->has('content_type') && $this->get('content_type')->has('name')) {
            $name = $this->get('content_type')->get('name');
        }

        return $name;
    }
protected function _getType()
    {
        $name = __d('content', '(unknown)');
        if ($this->has('content_type') && $this->get('content_type')->has('name')) {
            $name = $this->get('content_type')->get('name');
        }

        return $name;
    }
protected function _getType ( ) { $ name = __d ( 'content' , '(unknown)' ) ; if ( $ this -> has ( 'content_type' ) && $ this -> get ( 'content_type' ) -> has ( 'name' ) ) { $ name = $ this -> get ( 'content_type' ) -> get ( 'name' ) ; } return $ name ; }
Gets content type.

As Content Types are not dependent of Contents (deleting a content_type won't
remove all contents of that type). Some times we found contents without
`content_type`, in that cases, if no content_type is found `--unknow--` will
be returned.

@return string
Gets content type .