public function getSeobility($condition = 0, $defaultIfNotFound = true, $defaultCondition = 0)
    {
        $condition = (int)$condition;
        if (!array_key_exists($condition, $this->_seo)) {
            $this->_seo[$condition] = Seo::find($this->owner, $condition);
            if ($this->_seo[$condition]->getIsNewRecord() && $defaultIfNotFound) {
                $this->getSeobility((int)$defaultCondition, false);
            }
        }
        return $this->_seo[$condition]->getAttributes(['title', 'keywords', 'description']);
    }
public function getSeobility($condition = 0, $defaultIfNotFound = true, $defaultCondition = 0)
    {
        $condition = (int)$condition;
        if (!array_key_exists($condition, $this->_seo)) {
            $this->_seo[$condition] = Seo::find($this->owner, $condition);
            if ($this->_seo[$condition]->getIsNewRecord() && $defaultIfNotFound) {
                $this->getSeobility((int)$defaultCondition, false);
            }
        }
        return $this->_seo[$condition]->getAttributes(['title', 'keywords', 'description']);
    }
public function getSeobility ( $ condition = 0 , $ defaultIfNotFound = true , $ defaultCondition = 0 ) { $ condition = ( int ) $ condition ; if ( ! array_key_exists ( $ condition , $ this -> _seo ) ) { $ this -> _seo [ $ condition ] = Seo :: find ( $ this -> owner , $ condition ) ; if ( $ this -> _seo [ $ condition ] -> getIsNewRecord ( ) && $ defaultIfNotFound ) { $ this -> getSeobility ( ( int ) $ defaultCondition , false ) ; } } return $ this -> _seo [ $ condition ] -> getAttributes ( [ 'title' , 'keywords' , 'description' ] ) ; }
Get SEO data
@param int $condition SEO data condition for get. Default SEO data have condition=0
@param bool $defaultIfNotFound flag that get default SEO data if not found by condition
@param int $defaultCondition default SEO data condition for get.
If can't get SEO data with this condition will be return empty SEO data
@return \string[]
Get SEO data