src/Extensions/CommentsExtension.php
public function getCommentsEnabled()
    {
        // Don't display comments form for pseudo-pages (such as the login form)
        if (!$this->owner->exists()) {
            return false;
        }

        // Determine which flag should be used to determine if this is enabled
        if ($this->owner->getCommentsOption('enabled_cms')) {
            return (bool) $this->owner->ProvideComments;
        }

        return (bool) $this->owner->getCommentsOption('enabled');
    }
public function getCommentsEnabled()
    {
        // Don't display comments form for pseudo-pages (such as the login form)
        if (!$this->owner->exists()) {
            return false;
        }

        // Determine which flag should be used to determine if this is enabled
        if ($this->owner->getCommentsOption('enabled_cms')) {
            return (bool) $this->owner->ProvideComments;
        }

        return (bool) $this->owner->getCommentsOption('enabled');
    }
public function getCommentsEnabled ( ) { // Don't display comments form for pseudo-pages (such as the login form) if ( ! $ this -> owner -> exists ( ) ) { return false ; } // Determine which flag should be used to determine if this is enabled if ( $ this -> owner -> getCommentsOption ( 'enabled_cms' ) ) { return ( bool ) $ this -> owner -> ProvideComments ; } return ( bool ) $ this -> owner -> getCommentsOption ( 'enabled' ) ; }
Determine if comments are enabled for this instance

@return boolean
Determine if comments are enabled for this instance