45 Assert::parameterType(
'array|callable',
$slots,
'$slots' );
58 Assert::parameterElementType( SlotRecord::class,
$slots,
'$slots' );
63 foreach (
$slots as $slot ) {
64 $role = $slot->getRole();
65 $this->slots[$role] = $slot;
75 throw new LogicException( __CLASS__ .
' is not serializable.' );
93 return $this->
getSlot( $role )->getContent()->copy();
150 return $accu + $slot->
getSize();
167 Assert::postcondition(
169 'Slots info callback should return an array of objects'
199 return $accu ===
null
249 if ( $other === $this ) {
254 $bSlots = $other->getSlots();
263 foreach ( $aSlots as $role =>
$s ) {
266 if ( !
$s->hasSameContent(
$t ) ) {
284 if ( $other === $this ) {
289 $bSlots = $other->getSlots();
302 foreach ( $common as $role =>
$s ) {
305 if ( !
$s->hasSameContent(
$t ) ) {
306 $different[] = $role;
319class_alias( RevisionSlots::class,
'MediaWiki\Storage\RevisionSlots' );
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not null
Base interface for content objects.
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))