public function isRegistrationEnabled()
    {
        if (false === $xml = simplexml_load_string($this->get_prefs())) {
            return false;
        }

        $element = $xml->xpath('/baseprefs/caninscript');

        if (count($element) === 0) {
            return $this->databox->isRegistrationEnabled();
        }

        foreach ($element as $caninscript) {
            if (false !== (bool)(string)$caninscript) {
                return true;
            }
        }

        return false;
    }
public function isRegistrationEnabled()
    {
        if (false === $xml = simplexml_load_string($this->get_prefs())) {
            return false;
        }

        $element = $xml->xpath('/baseprefs/caninscript');

        if (count($element) === 0) {
            return $this->databox->isRegistrationEnabled();
        }

        foreach ($element as $caninscript) {
            if (false !== (bool)(string)$caninscript) {
                return true;
            }
        }

        return false;
    }
public function isRegistrationEnabled ( ) { if ( false === $ xml = simplexml_load_string ( $ this -> get_prefs ( ) ) ) { return false ; } $ element = $ xml -> xpath ( '/baseprefs/caninscript' ) ; if ( count ( $ element ) === 0 ) { return $ this -> databox -> isRegistrationEnabled ( ) ; } foreach ( $ element as $ caninscript ) { if ( false !== ( bool ) ( string ) $ caninscript ) { return true ; } } return false ; }
Tells whether registration is activated for provided collection or not.

@return boolean
Tells whether registration is activated for provided collection or not .