|
| | getTitle () |
| |
| | matches (\Title $title) |
| | Determine if a restriction matches a given title.- Since
- 1.33
- Parameters
-
- Returns
- bool
|
| |
| | setTitle (\Title $title) |
| |
| | __construct ( $blockId, $value) |
| | Create Restriction.
|
| |
| | equals (Restriction $other) |
| | Determine if a restriction equals another restriction.- Since
- 1.33
- Parameters
-
- Returns
- bool
|
| |
| | getBlockId () |
| | Gets the id of the block.- Since
- 1.33
- Returns
- int
|
| |
| | getHash () |
| | Create a unique hash of the block restriction based on the type and value.- Since
- 1.33
- Returns
- string
|
| |
| | getValue () |
| | Gets the value of the restriction.- Since
- 1.33
- Returns
- int
|
| |
| | setBlockId ( $blockId) |
| | Sets the id of the block.- Since
- 1.33
- Parameters
-
- Returns
- self
|
| |
| | toRow () |
| | Convert a restriction object into a row array for insertion.- Since
- 1.33
- Returns
- array
|
| |
|
| static | newFromRow (\stdClass $row) |
| | Creates a new Restriction from a database row.- Since
- 1.33
- Parameters
-
- Returns
- static
|
| |
| static | newFromTitle ( $title) |
| |
| static | getType () |
| | Gets the type of restriction.- Since
- 1.33
- Returns
- string
|
| |
| static | getTypeId () |
| | Gets the id of the type of restriction.This id is used in the database.- Since
- 1.33
- Returns
- int
|
| |
|
| const | TYPE = 'page' |
| |
| const | TYPE_ID = 1 |
| |
| const | TYPE = '' |
| | String constant identifying the type of restriction.
|
| |
| const | TYPE_ID = 0 |
| | Numeric type identifier.
|
| |
Definition at line 25 of file PageRestriction.php.
◆ getTitle()
| MediaWiki\Block\Restriction\PageRestriction::getTitle |
( |
| ) |
|
◆ matches()
| MediaWiki\Block\Restriction\PageRestriction::matches |
( |
\Title | $title | ) |
|
◆ newFromRow()
| static MediaWiki\Block\Restriction\PageRestriction::newFromRow |
( |
\stdClass | $row | ) |
|
|
static |
◆ newFromTitle()
| static MediaWiki\Block\Restriction\PageRestriction::newFromTitle |
( |
| $title | ) |
|
|
static |
◆ setTitle()
| MediaWiki\Block\Restriction\PageRestriction::setTitle |
( |
\Title | $title | ) |
|
◆ $title
| Title false null MediaWiki\Block\Restriction\PageRestriction::$title |
|
protected |
◆ TYPE
| const MediaWiki\Block\Restriction\PageRestriction::TYPE = 'page' |
◆ TYPE_ID
| const MediaWiki\Block\Restriction\PageRestriction::TYPE_ID = 1 |
The documentation for this class was generated from the following file: