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