X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FStorage%2FRevisionRecord.php;h=6d83e1c1009305157b43b3df1e2f32a653026ea8;hp=8734f48848c11d80c74006186c49f26193afdd20;hb=8269ed4dfd5e4395e25945b1fa2ed391684606ed;hpb=d2b5c86eac27b0ce60076502f195b1b37d762c60 diff --git a/includes/Storage/RevisionRecord.php b/includes/Storage/RevisionRecord.php index 8734f48848..6d83e1c100 100644 --- a/includes/Storage/RevisionRecord.php +++ b/includes/Storage/RevisionRecord.php @@ -196,6 +196,17 @@ abstract class RevisionRecord { return $slot; } + /** + * Returns whether the given slot is defined in this revision. + * + * @param string $role The role name of the desired slot + * + * @return bool + */ + public function hasSlot( $role ) { + return $this->mSlots->hasSlot( $role ); + } + /** * Returns the slot names (roles) of all slots present in this revision. * getContent() will succeed only for the names returned by this method.