Go to the documentation of this file.
36 parent::__construct(
$query, $moduleName,
'ci' );
41 $alltitles = $this->
getPageSet()->getAllTitlesByNamespace();
50 foreach ( $categories
as $c ) {
53 $cattitles[$c] =
$t->getDBkey();
59 'page_namespace' => NS_CATEGORY,
60 'page_title=cat_title' ) ),
63 'pp_propname' =>
'hiddencat' ) ),
71 'cat_hidden' =>
'pp_propname'
75 if ( !is_null(
$params[
'continue'] ) ) {
77 $this->
addWhere(
"cat_title >= $title" );
79 $this->
addOption(
'ORDER BY',
'cat_title' );
83 $catids = array_flip( $cattitles );
86 $vals[
'size'] = intval( $row->cat_pages );
87 $vals[
'pages'] = $row->cat_pages - $row->cat_subcats - $row->cat_files;
88 $vals[
'files'] = intval( $row->cat_files );
89 $vals[
'subcats'] = intval( $row->cat_subcats );
90 if ( $row->cat_hidden ) {
113 'continue' =>
'When more results are available, use this to continue',
146 return 'Returns information about the given categories.';
150 return 'api.php?action=query&prop=categoryinfo&titles=Category:Foo|Category:Bar';
154 return 'https://www.mediawiki.org/wiki/API:Properties#categoryinfo_.2F_ci';
addPageSubItems( $pageId, $data)
Add a sub-element under the page element with the given page ID.
addFields( $value)
Add a set of fields to select to the internal array.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
This query adds the "<categories>" subelement to all pages with the list of categories the page is in...
select( $method, $extraQuery=array())
Execute a SELECT query based on the values in the internal arrays.
getCacheMode( $params)
Get the cache mode for the data generated by this module.
addOption( $name, $value=null)
Add an option such as LIMIT or USE INDEX.
getParamDescription()
Returns an array of parameter descriptions.
linkcache txt The LinkCache class maintains a list of article titles and the information about whether or not the article exists in the database This is used to mark up links when displaying a page If the same link appears more than once on any page then it only has to be looked up once In most cases link lookups are done in batches with the LinkBatch class or the equivalent in so the link cache is mostly useful for short snippets of parsed and for links in the navigation areas of the skin The link cache was formerly used to track links used in a document for the purposes of updating the link tables This application is now deprecated To create a you can use the following $titles
This is a base class for all Query modules.
getResultProperties()
Returns possible properties in the result, grouped by the value of the prop parameter that shows them...
getDB()
Get the Query database connection (read-only)
addTables( $tables, $alias=null)
Add a set of tables to the internal array.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
extractRequestParams( $parseLimit=true)
Using getAllowedParams(), this function makes an array of the values provided by the user,...
presenting them properly to the user as errors is done by the caller $title
getExamples()
Returns usage examples for this module.
__construct( $query, $moduleName)
addJoinConds( $join_conds)
Add a set of JOIN conditions to the internal array.
getAllowedParams()
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (ar...
getPageSet()
Get the PageSet object to work on.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
getDescription()
Returns the description string for this module.
addWhere( $value)
Add a set of WHERE clauses to the internal array.
setContinueEnumParameter( $paramName, $paramValue)
Set a query-continue value.
return true to allow those checks to and false if checking is done use this to change the tables headers temp or archived zone change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped add a value to it if you want to add a cookie that have to vary cache options can modify $query