public function __get($name) { $parent = parent::__get($name); if ($parent === null) { $this->extractPool(); if (isset($this->poolData[$name])) { return $this->poolData[$name]; } } return $parent; }
/** * @see DatabaseObject::__get() */ public function __get($name) { $value = parent::__get($name); if (!defined('DO_NOT_PARSE_ALLIANCE_TEXTS') && ($name == 'ally_text' || $name == 'ally_description')) { require_once WCF_DIR . 'lib/data/message/bbcode/MessageParser.class.php'; $parser = MessageParser::getInstance(); $parser->setOutputType('text/html'); $value = $parser->parse($value, true, false, true); $value = str_replace('<br />', '', $value); } return $value; }
/** * pass magic method to owner object */ public function __get($name) { return $this->mix ? $this->mix->{$name} : parent::__get($name); }
/** * @see DatabaseObject::__get() */ public function __get($name) { $value = parent::__get($name); if ($value === null) { $value = $this->getUserOption($name); } return $value; }