public function __construct() { parent::__construct(); $this->favorite_counter = new FavoriteCounter(); $this->setData(); $this->sendCount(); }
public function __construct() { parent::__construct(); $this->setData(); $this->getList(); wp_send_json(array('status' => 'success', 'list' => $this->list)); }
public function __construct() { parent::__construct(); $this->user_repo = new UserRepository(); $this->setFormData(); $this->updateFavorite(); }
public function __construct() { parent::__construct(); $this->user_repo = new UserRepository(); $this->favorites_sync = new SyncAllFavorites(); $this->setFormData(); $this->clearFavorites(); $this->sendResponse(); }