public function getTasks($data = '') { $notifications = new NotificationsFactory(); $this->_type = 'task'; $this->_data = $notifications->getTasks(); return $this->returnResponse(); }
<?php require_once '/var/www/lib/notifications_factory.php'; $notifications = new NotificationsFactory(); $notifications->writeFile();