protected function action($settings = array(), $defaults = array()) { if ($this->backend->info->is_available_meta($this->modulename)) { $this->action = parent::action($settings, $defaults); } else { throw new ApibotException_InternalError("API module " . $this->modulename . " is unknown at this wiki"); } }
function __construct($backend, $settings = array(), $defaults = array()) { $this->prop = $this->querykey(); parent::__construct($backend, $settings, $defaults); }