Elgg\Database\MetadataTable::registerMetadataAsIndependent PHP Метод

registerMetadataAsIndependent() публичный Метод

Mark entities with a particular type and subtype as having access permissions that can be changed independently from their parent entity
public registerMetadataAsIndependent ( string $type, string $subtype = '*' ) : void
$type string The type - object, user, etc
$subtype string The subtype; all subtypes by default
Результат void
    function registerMetadataAsIndependent($type, $subtype = '*')
    {
        if (!isset($this->independents[$type])) {
            $this->independents[$type] = array();
        }
        $this->independents[$type][$subtype] = true;
    }