Last active
February 12, 2016 08:22
-
-
Save tao-s/2ccd2ba79164a3f5a842 to your computer and use it in GitHub Desktop.
Fileの一覧吐く
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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