public function is_locked() {
        if ($this->_locked) {
            return true;
        }

        if ($parent = $this->get_parent_context()) {
            return $parent->is_locked();
        }

        return false;
    }
public function is_locked() {
        if ($this->_locked) {
            return true;
        }

        if ($parent = $this->get_parent_context()) {
            return $parent->is_locked();
        }

        return false;
    }
public function is_locked ( ) { if ( $ this -> _locked ) { return true ; } if ( $ parent = $ this -> get_parent_context ( ) ) { return $ parent -> is_locked ( ) ; } return false ; }
Whether the current context is locked.

@return  bool
Whether the current context is locked .