VersionPress\Storages\MetaEntityStorage::__construct PHP Method

__construct() public method

public __construct ( Storage $parentStorage, EntityInfo $entityInfo, $dbPrefix, $changeInfoFactory, $keyName = 'meta_key', $valueName = 'meta_value' )
$parentStorage Storage
$entityInfo VersionPress\Database\EntityInfo
    public function __construct(Storage $parentStorage, EntityInfo $entityInfo, $dbPrefix, $changeInfoFactory, $keyName = 'meta_key', $valueName = 'meta_value')
    {
        parent::__construct($entityInfo, $dbPrefix);
        $this->parentStorage = $parentStorage;
        $this->changeInfoFactory = $changeInfoFactory;
        $this->keyName = $keyName;
        $this->valueName = $valueName;
        $this->parentReferenceName = "vp_{$entityInfo->parentReference}";
    }

Usage Example

Ejemplo n.º 1
0
 function __construct(UserStorage $userStorage, EntityInfo $entityInfo, $dbPrefix)
 {
     parent::__construct($userStorage, $entityInfo, 'meta_key', 'meta_value');
     $this->dbPrefix = $dbPrefix;
 }
All Usage Examples Of VersionPress\Storages\MetaEntityStorage::__construct