dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add support for 'hu-formal'"
[lhc/web/wiklou.git]
/
includes
/
Storage
/
RevisionRecord.php
diff --git
a/includes/Storage/RevisionRecord.php
b/includes/Storage/RevisionRecord.php
index
8734f48
..
6d83e1c
100644
(file)
--- a/
includes/Storage/RevisionRecord.php
+++ b/
includes/Storage/RevisionRecord.php
@@
-196,6
+196,17
@@
abstract class RevisionRecord {
return $slot;
}
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.
/**
* Returns the slot names (roles) of all slots present in this revision.
* getContent() will succeed only for the names returned by this method.