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