- function is_special() { return new CBTValue( $this->mTitle->getNamespace() == NS_SPECIAL, 'title' ); }
- function can_edit() { return new CBTValue( (string)($this->mTitle->userCanEdit()), 'dynamic' ); }
- function can_move() { return new CBTValue( (string)($this->mTitle->userCanMove()), 'dynamic' ); }
- function is_talk() { return new CBTValue( (string)($this->mTitle->isTalkPage()), 'title' ); }
- function is_protected() { return new CBTValue( (string)$this->mTitle->isProtected(), 'dynamic' ); }
- function nskey() { return new CBTValue( $this->mTitle->getNamespaceKey(), 'title' ); }
+ function is_special() { return cbt_value( $this->mTitle->getNamespace() == NS_SPECIAL, 'title' ); }
+ function can_edit() { return cbt_value( (string)($this->mTitle->userCanEdit()), 'dynamic' ); }
+ function can_move() { return cbt_value( (string)($this->mTitle->userCanMove()), 'dynamic' ); }
+ function is_talk() { return cbt_value( (string)($this->mTitle->isTalkPage()), 'title' ); }
+ function is_protected() { return cbt_value( (string)$this->mTitle->isProtected(), 'dynamic' ); }
+ function nskey() { return cbt_value( $this->mTitle->getNamespaceKey(), 'title' ); }