function is_link($new = null, $return_entity = false)
    {
        if (isset($new) && ($this->_attributes['is_link'] != $new)){
            $this->change('is_link', (bool)$new);
        }
        if ($return_entity){
            if (!isset($this->_link)){
                if (empty($this->_attributes['is_link'])){
                    $this->_link = false;
                }else
                if (($this->_link = $this->proto(null, true))){
                    if ($p = $this->_link->is_link(null, true)) $this->_link = $p;
                }
            }
            return $this->_link;
        }
        return $this->_attributes['is_link'];
    }
function is_link($new = null, $return_entity = false)
    {
        if (isset($new) && ($this->_attributes['is_link'] != $new)){
            $this->change('is_link', (bool)$new);
        }
        if ($return_entity){
            if (!isset($this->_link)){
                if (empty($this->_attributes['is_link'])){
                    $this->_link = false;
                }else
                if (($this->_link = $this->proto(null, true))){
                    if ($p = $this->_link->is_link(null, true)) $this->_link = $p;
                }
            }
            return $this->_link;
        }
        return $this->_attributes['is_link'];
    }
function is_link ( $ new = null , $ return_entity = false ) { if ( isset ( $ new ) && ( $ this -> _attributes [ 'is_link' ] != $ new ) ) { $ this -> change ( 'is_link' , ( bool ) $ new ) ; } if ( $ return_entity ) { if ( ! isset ( $ this -> _link ) ) { if ( empty ( $ this -> _attributes [ 'is_link' ] ) ) { $ this -> _link = false ; } else if ( ( $ this -> _link = $ this -> proto ( null , true ) ) ) { if ( $ p = $ this -> _link -> is_link ( null , true ) ) $ this -> _link = $ p ; } } return $ this -> _link ; } return $ this -> _attributes [ 'is_link' ] ; }
Object referenced by this object
@param null|bool $new Новое значение признака
@param bool $return_entity Признак, возвращать объект вместо uri
@return bool|Entity
Object referenced by this object