public function __construct( $main, $format ) { parent :: __construct( $main, $format ); $this->dmRecords = array(); $this->languages = array(); $this->excluded = array(); $this->errorMessages = array(); }
/** * @param ApiMain $main * @param ApiFormatBase|null $errorFallback Object to fall back on for errors */ public function __construct(ApiMain $main, ApiFormatBase $errorFallback = null) { parent::__construct($main, 'raw'); if ($errorFallback === null) { $this->errorFallback = $main->createPrinterByName($main->getParameter('format')); } else { $this->errorFallback = $errorFallback; } }
public function __construct(ApiMain $main, $format) { parent::__construct($main, $format); $this->isRaw = $format === 'rawfm'; if ($this->getMain()->getCheck('callback')) { # T94015: jQuery appends a useless '_' parameter in jsonp mode. # Mark the parameter as used in that case to avoid a warning that's # outside the control of the end user. # (and do it here because ApiMain::reportUnusedParams() gets called # before our ::execute()) $this->getMain()->getCheck('_'); } }
public function __construct($main, $format) { parent::__construct($main, $format); }
public function __construct($main, $format) { parent::__construct($main, $format); $this->mIsRaw = $format === 'rawfm'; }
public function __construct($main) { parent::__construct($main, 'feed'); }
/** * Constructor * @param $main ApiMain object * @param $errorFallback ApiFormatBase object to fall back on for errors */ public function __construct($main, $errorFallback) { parent::__construct($main, 'raw'); $this->mErrorFallback = $errorFallback; }
public function __construct(ApiMain $main, ApiFormatBase $errorFallback) { parent::__construct($main, 'file'); $this->errorFallback = $errorFallback; }