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