public function getUploadedFiles()
    {
        if ($c = $this->model) {
            $a = explode(',', $this->value);
            $b = array();
            foreach ($a as $val) {
                if ($val) {
                    $b[] = $val;
                }
            }
            $files = implode(',', filter_var_array($b, FILTER_VALIDATE_INT));
            if ($files) {
                $c->addCondition('id', 'in', ($files ? $files : 0));
                $data = $c->getRows(array(
                    'id',
                    'url',
                    'thumb_url',
                    $this->getOriginalFilenameFieldName(),
                    $this->getFilesizeFieldName()
                ));
            } else {
                $data = array();
            }

            return $this->formatFiles($data);
        }
    }
public function getUploadedFiles()
    {
        if ($c = $this->model) {
            $a = explode(',', $this->value);
            $b = array();
            foreach ($a as $val) {
                if ($val) {
                    $b[] = $val;
                }
            }
            $files = implode(',', filter_var_array($b, FILTER_VALIDATE_INT));
            if ($files) {
                $c->addCondition('id', 'in', ($files ? $files : 0));
                $data = $c->getRows(array(
                    'id',
                    'url',
                    'thumb_url',
                    $this->getOriginalFilenameFieldName(),
                    $this->getFilesizeFieldName()
                ));
            } else {
                $data = array();
            }

            return $this->formatFiles($data);
        }
    }
public function getUploadedFiles ( ) { if ( $ c = $ this -> model ) { $ a = explode ( ',' , $ this -> value ) ; $ b = array ( ) ; foreach ( $ a as $ val ) { if ( $ val ) { $ b [ ] = $ val ; } } $ files = implode ( ',' , filter_var_array ( $ b , FILTER_VALIDATE_INT ) ) ; if ( $ files ) { $ c -> addCondition ( 'id' , 'in' , ( $ files ? $ files : 0 ) ) ; $ data = $ c -> getRows ( array ( 'id' , 'url' , 'thumb_url' , $ this -> getOriginalFilenameFieldName ( ) , $ this -> getFilesizeFieldName ( ) ) ) ; } else { $ data = array ( ) ; } return $ this -> formatFiles ( $ data ) ; } }
those can be done in flash thingie as well
those can be done in flash thingie as well