public static function buildResult(tao_install_services_Data $data, common_configuration_Report $report, common_configuration_Component $component) { $content = json_decode($data->getContent(), true); $id = $content['value']['id']; $url = $content['value']['host']; echo 'buildResult host: ' . $url . "\r\n"; $data = array('type' => 'TAOForgeConnectionReport', 'value' => array('status' => $report->getStatusAsString(), 'message' => $report->getMessage(), 'optional' => $component->isOptional(), 'name' => $component->getName(), 'id' => $id)); return new tao_install_services_Data(json_encode($data)); }
public static function buildResult(tao_install_services_Data $data, common_configuration_Report $report, common_configuration_Component $component) { $content = json_decode($data->getContent(), true); $rights = $content['value']['rights']; $id = $content['value']['id']; $root = dirname(__FILE__) . '/../../../'; $data = array('type' => 'FileSystemComponentReport', 'value' => array('status' => $report->getStatusAsString(), 'message' => $report->getMessage(), 'id' => $id, 'optional' => $component->isOptional(), 'isReadable' => $component->isReadable(), 'isWritable' => $component->isWritable(), 'isExecutable' => $component->isExecutable(), 'recursive' => $component->getRecursive(), 'expectedRights' => $rights, 'isFile' => is_file($root . $component->getLocation()), 'location' => $component->getLocation())); return new tao_install_services_Data(json_encode($data)); }
public static function buildResult(tao_install_services_Data $data, common_configuration_Report $report, common_configuration_Component $component) { $content = json_decode($data->getContent(), true); $value = $content['value']['value']; $id = $content['value']['id']; $data = array('type' => 'PHPINIValueReport', 'value' => array('status' => $report->getStatusAsString(), 'id' => $id, 'message' => $report->getMessage(), 'expectedValue' => $value, 'value' => $component->getValue(), 'optional' => $component->isOptional(), 'name' => $component->getName())); return new tao_install_services_Data(json_encode($data)); }
public static function buildResult(tao_install_services_Data $data, common_configuration_Report $report, common_configuration_Component $component) { $content = json_decode($data->getContent(), true); $id = $content['value']['id']; $value = array('status' => $report->getStatusAsString(), 'id' => $id, 'message' => $report->getMessage(), 'min' => $component->getMin(), 'value' => $component->getValue(), 'optional' => $component->isOptional()); $max = $component->getMax(); if (!empty($max)) { $value['max'] = $component->getMax(); } $data = array('type' => 'PHPRuntimeReport', 'value' => $value); return new tao_install_services_Data(json_encode($data)); }