public function setContenttype($contenttype)
    {
        if (is_string($contenttype)) {
            $contenttype = $this->app['storage']->getContenttype($contenttype);
        }

        $this->contenttype = $contenttype;
    }
public function setContenttype($contenttype)
    {
        if (is_string($contenttype)) {
            $contenttype = $this->app['storage']->getContenttype($contenttype);
        }

        $this->contenttype = $contenttype;
    }
public function setContenttype ( $ contenttype ) { if ( is_string ( $ contenttype ) ) { $ contenttype = $ this -> app [ 'storage' ] -> getContenttype ( $ contenttype ) ; } $ this -> contenttype = $ contenttype ; }
Set the Contenttype for the record.

@param array|string $contenttype
Set the Contenttype for the record .