VersionPress\ChangeInfos\EntityChangeInfo::__construct PHP Method

__construct() public method

public __construct ( EntityInfo $entityInfo, ActionsInfo $actionsInfo, string $action, string $entityId, array $customTags = [], array $customFiles = [] )
$entityInfo VersionPress\Database\EntityInfo
$actionsInfo VersionPress\Actions\ActionsInfo
$action string
$entityId string
$customTags array
$customFiles array
    public function __construct($entityInfo, $actionsInfo, $action, $entityId, $customTags = [], $customFiles = [])
    {
        parent::__construct($entityInfo->entityName, $actionsInfo, $action, $entityId, $customTags, $customFiles);
        $this->entityInfo = $entityInfo;
        $this->actionsInfo = $actionsInfo;
    }

Usage Example

Ejemplo n.º 1
0
 public function __construct($action, $entityId, $postType, $postTitle, $postUpdatedProperties = array())
 {
     parent::__construct("post", $action, $entityId);
     $this->postType = $postType;
     $this->postTitle = $postTitle;
     $this->postUpdatedProperties = implode(",", $postUpdatedProperties);
 }
All Usage Examples Of VersionPress\ChangeInfos\EntityChangeInfo::__construct