MyPluginControllerGroups * * @since 10.0 */ abstract class JControllerAdmin extends JController { /** * The controller model. * * @var JModel */ private $_model = null; /** * Magic method to access private properties. * * @param string $name The property name to access. * * @return mixed The property value if exists, otherwise null. */ public function __get($name) { if ($name == 'model' && !isset($this->_model)) { $this->_model = $this->getModel(); } $name = '_' . $name; if (property_exists($this, $name)) { return $this->{$name}; } return null; } }