Skip to content

Instantly share code, notes, and snippets.

@tao-s
Last active February 12, 2016 08:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tao-s/2ccd2ba79164a3f5a842 to your computer and use it in GitHub Desktop.
Save tao-s/2ccd2ba79164a3f5a842 to your computer and use it in GitHub Desktop.
Fileの一覧吐く
<?php defined('C5_EXECUTE') or die("Access Denied.");
namespace Application\Controller;
use Concrete\Core\File\FileList;
class GetFileDataContoroller {
public function index(){
$fl = new FileList();
$fl->filterByIsCommon(1);
$rs = $fl->get();
foreach($rs as $f){
//File Object
$fv = $f->getApprovedVersion();
echo $fv->getURL();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment