예제 #1
0
 static function buildFromDeliveryExecution(\taoDelivery_models_classes_execution_DeliveryExecution $deliveryExecution)
 {
     $data = array();
     $data[self::ID] = $deliveryExecution->getIdentifier();
     $data[self::LABEL] = $deliveryExecution->getLabel();
     $data[self::LAUNCH_URL] = _url('runDeliveryExecution', 'DeliveryServer', null, array('deliveryExecution' => $deliveryExecution->getIdentifier()));
     $data[self::DESCRIPTION] = array(__("Started at %s", \tao_helpers_Date::displayeDate($deliveryExecution->getStartTime())));
     $data[self::AUTHORIZED] = true;
     return $data;
 }
 /**
  * Get delivery execution data
  * @param \taoDelivery_models_classes_execution_DeliveryExecution $deliveryExecution
  * @return array
  */
 public function getDeliveryData(\taoDelivery_models_classes_execution_DeliveryExecution $deliveryExecution)
 {
     $result = ['start' => $deliveryExecution->getStartTime(), 'end' => $deliveryExecution->getFinishTime(), 'label' => $deliveryExecution->getLabel()];
     return $result;
 }