/**
  * Get formatted images.
  *
  * @return array
  */
 protected function getFormattedImages()
 {
     if (!isset($this->formattedData['images'])) {
         $this->formattedData['images'] = $this->formatter->getImages();
     }
     return $this->formattedData['images'];
 }
 /**
  * Get formatted images, if user is super admin and either "createMissing" or "updateExisting" images option is true.
  *
  * @return array
  */
 protected function getFormattedImages()
 {
     if (!isset($this->formattedData['images'])) {
         $this->formattedData['images'] = array();
         if (CWebUser::$data['type'] == USER_TYPE_SUPER_ADMIN && $this->options['images']['updateExisting'] || $this->options['images']['createMissing']) {
             $this->formattedData['images'] = $this->formatter->getImages();
         }
     }
     return $this->formattedData['images'];
 }