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 | |
namespace Phile\Plugin\Phile\DemoPlugin; | |
use Phile\Core\Registry; | |
use Phile\Repository\Page; | |
class Plugin extends \Phile\Plugin\AbstractPlugin implements \Phile\Gateway\EventObserverInterface | |
{ | |
public function __construct() |
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
public static function getFiles($directory, $filter = '\Phile\FilterIterator\GeneralFileFilterIterator') { | |
$files = new $filter(new \RecursiveIteratorIterator( | |
new \RecursiveDirectoryIterator( | |
$directory, | |
\RecursiveDirectoryIterator::FOLLOW_SYMLINKS | |
))); | |
$result = array(); | |
foreach ($files as $file) { | |
/** @var \SplFileInfo $file */ | |
$result[] = $file->getPathname(); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<project name="PhileCMS" default="menu"> | |
<property name="dirs.dist" value="dist"/> | |
<property name="dirs.build" value="phing-temp"/> | |
<property name="dirs.git" value="${dirs.build}/Phile"/> | |
<property name="git.url" value="https://github.com/PhileCMS/Phile.git"/> | |
<!-- ## menu ## --> | |
<target name="menu"> |
NewerOlder