11 public static $frequencies=[
'always',
'hourly',
'daily',
'weekly',
'monthly',
'yearly',
'never' ];
22 foreach ( $routes as $path => $route ) {
31 foreach ($array as $url){
37 if (isset($route[
"controller"])) {
38 $controller=$route[
"controller"];
39 $action=$route[
"action"];
40 } elseif (isset($route[
"get"])) {
41 return $this->
parseUrl($path,$route[
"get"]);
45 $url=
new Url($path, self::getLastModified($controller, $action));
52 if(\is_array($classCode)){
53 $reflexAction=new \ReflectionMethod($controller.
'::'.$action);
55 foreach ( $views as $view ) {
56 $file=ROOT . DS .
"views" . DS . $view;
58 if ($viewDate > $lastModified)
59 $lastModified=$viewDate;
static getClassCode($classname)
static fromArray($array, $existing=true)
parseArray($array, $existing=true)
static lastModified($filename)
static getFileName($classname)
Url for Seo module, use for sitemap generation.
static getLastModified($controller, $action)
static getLoadedViews(\ReflectionMethod $r, $lines)