13 protected static $attributeGrants = array();
23 $key = sprintf(
"%0d-%0d-%0d-%s", $doc->fromid, $doc->cvid, $doc->wid, $doc->state);
25 if (!isset(self::$attributeGrants[$key])) {
29 self::$attributeGrants[$key] = array();
31 foreach ($oas as $oa) {
32 if ($oa->mvisibility ===
"I") {
33 self::$attributeGrants[$key][$oa->id] =
false;
37 return (!isset(self::$attributeGrants[$key][$attribute->id]));
41 self::$attributeGrants = array();
getNormalAttributes($onlyopt=false)
static isAttributeAccessGranted(\Doc $doc,\BasicAttribute $attribute)