__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
Example #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);
 }
 public function __construct($action, $entityId, $termName, $termVpId, $metaKey)
 {
     parent::__construct("termmeta", $action, $entityId);
     $this->termName = $termName;
     $this->termVpId = $termVpId;
     $this->metaKey = $metaKey;
 }
 public function __construct($action, $entityId, $userLogin, $userMetaKey, $userVpId)
 {
     parent::__construct("usermeta", $action, $entityId);
     $this->userLogin = $userLogin;
     $this->userMetaKey = $userMetaKey;
     $this->userVpId = $userVpId;
 }
Example #4
0
 public function __construct($action, $entityId, $termName, $taxonomy, $oldTermName = null)
 {
     parent::__construct("term", $action, $entityId);
     $this->termName = $termName;
     $this->taxonomy = $taxonomy;
     $this->oldTermName = $oldTermName;
 }
 public function __construct($action, $entityId, $postType, $postTitle, $postVpId, $metaKey)
 {
     parent::__construct("postmeta", $action, $entityId);
     $this->postType = $postType;
     $this->postTitle = $postTitle;
     $this->postVpId = $postVpId;
     $this->metaKey = $metaKey;
 }
 public function __construct($action, $entityId, $commentAuthor, $commentedPost)
 {
     parent::__construct("comment", $action, $entityId);
     $this->commentAuthor = $commentAuthor;
     $this->commentedPost = $commentedPost;
 }
Example #7
0
 public function __construct($action, $entityId, $userLogin)
 {
     parent::__construct("user", $action, $entityId);
     $this->userLogin = $userLogin;
 }
Example #8
0
 public function __construct($action, $entityId)
 {
     parent::__construct("option", $action, $entityId);
 }
 public function __construct($action, $entityId, $taxonomy, $termName)
 {
     parent::__construct("term_taxonomy", $action, $entityId);
     $this->taxonomy = $taxonomy;
     $this->termName = $termName;
 }