Ejemplo n.º 1
0
 public static function toArray($string, $return_null = false)
 {
     $crud = explode(',', $string);
     if (empty($crud)) {
         if ($return_null) {
             return null;
         }
         return [];
     }
     $array = Img::attachKey($crud);
     if (empty($array)) {
         if ($return_null) {
             return null;
         }
         return [];
     }
     return $array;
 }
Ejemplo n.º 2
0
 public function getTmpList()
 {
     $dir = '_tmp/' . $this->_cate . '/' . $this->_token . '/';
     $re = $this->scan($dir);
     $imgs = Img::attachKey($re);
     return $imgs;
 }