public function initCompilation()
    {
        $this->defaultData();

        $delivery = $this->getCurrentInstance();

        //init the value to be returned
        $deliveryData=array();

        $deliveryData["uri"] = $delivery->getUri();

        //check if a wsdl contract is set to upload the result:
        $resultServer = $this->getClassService()->getResultServer($delivery);
        $deliveryData['resultServer'] = $resultServer;

        $deliveryData['tests'] = array();
        if(!empty($resultServer)){

            //get the tests list from the delivery id: likely, by parsing the deliveryContent property value
            //array of resource, test set
            $tests = $this->getClassService()->getRelatedTests($delivery);

            foreach($tests as $test){
                $deliveryData['tests'][] = array(
                    "label" => $test->getLabel(),
                    "uri" => $test->getUri()
                );
            }
        }

        $this->returnJson($deliveryData);
    }
public function initCompilation()
    {
        $this->defaultData();

        $delivery = $this->getCurrentInstance();

        //init the value to be returned
        $deliveryData=array();

        $deliveryData["uri"] = $delivery->getUri();

        //check if a wsdl contract is set to upload the result:
        $resultServer = $this->getClassService()->getResultServer($delivery);
        $deliveryData['resultServer'] = $resultServer;

        $deliveryData['tests'] = array();
        if(!empty($resultServer)){

            //get the tests list from the delivery id: likely, by parsing the deliveryContent property value
            //array of resource, test set
            $tests = $this->getClassService()->getRelatedTests($delivery);

            foreach($tests as $test){
                $deliveryData['tests'][] = array(
                    "label" => $test->getLabel(),
                    "uri" => $test->getUri()
                );
            }
        }

        $this->returnJson($deliveryData);
    }
public function initCompilation ( ) { $ this -> defaultData ( ) ; $ delivery = $ this -> getCurrentInstance ( ) ; //init the value to be returned $ deliveryData = array ( ) ; $ deliveryData [ "uri" ] = $ delivery -> getUri ( ) ; //check if a wsdl contract is set to upload the result: $ resultServer = $ this -> getClassService ( ) -> getResultServer ( $ delivery ) ; $ deliveryData [ 'resultServer' ] = $ resultServer ; $ deliveryData [ 'tests' ] = array ( ) ; if ( ! empty ( $ resultServer ) ) { //get the tests list from the delivery id: likely, by parsing the deliveryContent property value //array of resource, test set $ tests = $ this -> getClassService ( ) -> getRelatedTests ( $ delivery ) ; foreach ( $ tests as $ test ) { $ deliveryData [ 'tests' ] [ ] = array ( "label" => $ test -> getLabel ( ) , "uri" => $ test -> getUri ( ) ) ; } } $ this -> returnJson ( $ deliveryData ) ; }
get the compilation view

@access public
@author CRP Henri Tudor - TAO Team - {@link http://www.tao.lu}
@return void
get the compilation view