示例#1
0
文件: Image.php 项目: shsrain/ypyzApi
 public function getPotentialMessage()
 {
     $message = parent::getPotentialMessage();
     $imageTypes = array_map('strtoupper', $this->options[self::OPTION_ALLOWED_IMAGES]);
     $message->setVariables(array('image_types' => implode(', ', $imageTypes)));
     return $message;
 }
示例#2
0
 public function getPotentialMessage()
 {
     $message = parent::getPotentialMessage();
     $fileExtensions = array_map('strtoupper', $this->options[self::OPTION_ALLOWED_EXTENSIONS]);
     $message->setVariables(array('file_extensions' => implode(', ', $fileExtensions)));
     return $message;
 }