class MWFunction {
+ /**
+ * @param $callback
+ * @return array
+ * @throws MWException
+ */
protected static function cleanCallback( $callback ) {
if( is_string( $callback ) ) {
if ( strpos( $callback, '::' ) !== false ) {
return $callback;
}
+ /**
+ * @param $callback
+ * @return mixed
+ */
public static function call( $callback ) {
$callback = self::cleanCallback( $callback );
return call_user_func_array( 'call_user_func', $args );
}
+ /**
+ * @param $callback
+ * @param $argsarams
+ * @return mixed
+ */
public static function callArray( $callback, $argsarams ) {
$callback = self::cleanCallback( $callback );
return call_user_func_array( $callback, $argsarams );
}
+ /**
+ * @param $class
+ * @param $args array
+ * @return object
+ */
public static function newObj( $class, $args = array() ) {
if( !count( $args ) ) {
return new $class;
* Returns array(magic word ID, parameter value)
* If there is no parameter value, that element will be false.
*
- * @param $m arrray
+ * @param $m array
*
* @return array
*/
$endsortkey = $params['endsortkeyprefix'] !== null ?
Collation::singleton()->getSortkey( $params['endsortkeyprefix'] ) :
$params['endsortkey'];
-
+
// The below produces ORDER BY cl_sortkey, cl_from, possibly with DESC added to each of them
$this->addWhereRange( 'cl_sortkey',
$dir,
/**
* Get schema variables. If none have been set via setSchemaVars(), then
* use some defaults from the current object.
+ *
+ * @return array
*/
protected function getSchemaVars() {
if ( $this->mSchemaVars ) {
application/xslt+xml xslt
application/xml xml xsl xsd
application/xml-dtd dtd
-application/zip zip jar xpi sxc stc sxd std sxi sti sxm stm sxw stw
+application/zip zip jar xpi sxc stc sxd std sxi sti sxm stm sxw stw
application/x-rar rar
audio/basic au snd
audio/midi mid midi kar
$parts = explode( '/', $par, 2 );
$this->limit = (int)$parts[0];
// @todo FIXME: nlinks is ignored
- $nlinks = isset( $parts[1] ) && $parts[1] === 'nlinks';
+ //$nlinks = isset( $parts[1] ) && $parts[1] === 'nlinks';
$this->offset = 0;
} else {
- $nlinks = true;
+ //$nlinks = true;
}
$this->setListoutput( $inc );
$this->shownavigation = !$inc;
}
}
+ /**
+ * @var $child Maintenance
+ */
$child = new $maintClass();
$child->loadParamsAndArgs( $this->mSelf, $this->mOptions, $this->mArgs );
if ( !is_null( $this->mDb ) ) {