function create($data)
 {
     $CreateFactory = new CreateFactory($data);
     $this->_type = 'create';
     $this->_data = $CreateFactory->run();
     return $this->returnResponse();
 }
Example #2
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/lib/create_factory.php';
/** GET DATA FROM POST */
$action = $_POST['action'];
$value = $_POST['value'];
$pid = $_POST['pid'];
$data_file = $_POST['data_file'];
$id_task = $_POST['id_task'];
$progress = $_POST['progress'];
$data["action"] = $action;
$data["value"] = $value;
$data["pid"] = $pid;
$data["data_file"] = $data_file;
$data["id_task"] = $id_task;
$data["progress"] = $progress;
$data['function'] = "operation";
$CreateFactory = new CreateFactory($data);
echo $CreateFactory->run();