Document/Index/Factory/SeoFactory.php
public function create($data)
    {
        $seo = new SeoViewObject();

        if (empty($data)) {
            return $seo;
        }

        $seo->title = $data['title'];
        $seo->description = $data['description'];
        $seo->keywords = $data['keywords'];
        $seo->canonicalUrl = $data['canonicalUrl'];
        $seo->noIndex = $data['noIndex'];
        $seo->noFollow = $data['noFollow'];
        $seo->hideInSitemap = $data['hideInSitemap'];

        return $seo;
    }
public function create($data)
    {
        $seo = new SeoViewObject();

        if (empty($data)) {
            return $seo;
        }

        $seo->title = $data['title'];
        $seo->description = $data['description'];
        $seo->keywords = $data['keywords'];
        $seo->canonicalUrl = $data['canonicalUrl'];
        $seo->noIndex = $data['noIndex'];
        $seo->noFollow = $data['noFollow'];
        $seo->hideInSitemap = $data['hideInSitemap'];

        return $seo;
    }
public function create ( $ data ) { $ seo = new SeoViewObject ( ) ; if ( empty ( $ data ) ) { return $ seo ; } $ seo -> title = $ data [ 'title' ] ; $ seo -> description = $ data [ 'description' ] ; $ seo -> keywords = $ data [ 'keywords' ] ; $ seo -> canonicalUrl = $ data [ 'canonicalUrl' ] ; $ seo -> noIndex = $ data [ 'noIndex' ] ; $ seo -> noFollow = $ data [ 'noFollow' ] ; $ seo -> hideInSitemap = $ data [ 'hideInSitemap' ] ; return $ seo ; }
Create a seo view object by given data.

@param array $data

@return SeoViewObject
Create a seo view object by given data .