Exemplo n.º 1
0
 public function __construct(PageInfo $pageInfo, ImagickTaskQueue $taskQueue)
 {
     $activeCategory = $pageInfo->getCategory();
     $activeExample = $pageInfo->getExample();
     $this->imageBaseURL = \ImagickDemo\Route::getImageURL($activeCategory, $activeExample);
     $this->orignalImageBaseURL = \ImagickDemo\Route::getOriginalImageURL($activeCategory, $activeExample);
     $this->customImageBaseURL = \ImagickDemo\Route::getCustomImageURL($activeCategory, $activeExample);
     $this->imageStatusBaseURL = \ImagickDemo\Route::getImageStatusURL($activeCategory, $activeExample);
     $this->taskQueue = $taskQueue;
 }
Exemplo n.º 2
0
 public function getCustomImageURL(array $extraParams = array())
 {
     $paramString = '';
     $separator = '?';
     foreach ($extraParams as $key => $value) {
         $paramString .= $separator . $key . "=" . $value;
         $separator = '&';
     }
     return Route::getCustomImageURL($this->activeCategory, $this->activeExample) . $paramString;
 }