Beispiel #1
0
 protected function render($xml = null)
 {
     if (is_null($xml)) {
         $xml = parent::render($xml);
     } else {
         parent::render($xml);
     }
     foreach ($this->jobs as $job) {
         $job->render($xml);
     }
     return $xml;
 }
Beispiel #2
0
 protected function render($xml = null)
 {
     if (is_null($xml)) {
         $xml = parent::render($xml);
     } else {
         parent::render($xml);
     }
     $status = $xml->addChild('status');
     foreach ($this->jobs as $job) {
         $j = $status->addChild('job', $job);
     }
     return $xml;
 }
Beispiel #3
0
 /**
  * @todo add size error checking
  */
 protected function render($xml = null)
 {
     if (is_null($xml)) {
         $xml = parent::render($xml);
     } else {
         parent::render($xml);
     }
     if ($this->job instanceof Bluga_Webthumb_Job) {
         $id = $this->job->status->id;
     } else {
         $id = $this->job;
     }
     $fetch = $xml->addChild('fetch');
     $fetch->addChild('job', $id);
     $fetch->addChild('size', $this->size);
     return $xml;
 }