11 public static $frequencies=[
'always',
'hourly',
'daily',
'weekly',
'monthly',
'yearly',
'never' ];
22 foreach ( $routes as $path => $route ) {
25 if(!isset($this->urls[$path]))
26 $this->urls[$path]=$url;
32 foreach ($array as $url){
38 if (isset($route[
"controller"])) {
39 $controller=$route[
"controller"];
40 $action=$route[
"action"];
41 } elseif (isset($route[
"get"])) {
42 return $this->
parseUrl($path,$route[
"get"]);
46 $lastModified=self::getLastModified($controller, $action);
47 if($lastModified!==
false){
48 $url=
new Url($path, $lastModified);
55 if(\class_exists($controller)){
58 if(\is_array($classCode)){
59 $reflexAction=new \ReflectionMethod($controller.
'::'.$action);
61 foreach ( $views as $view ) {
62 $file=ROOT . DS .
"views" . DS . $view;
64 if ($viewDate > $lastModified)
65 $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)