@@ -5,29 +5,29 @@ |
||
5 | 5 | abstract class Collector |
6 | 6 | { |
7 | 7 | |
8 | - protected static function run_query($query) |
|
9 | - { |
|
10 | - return Database::select($query); |
|
11 | - } |
|
12 | - |
|
13 | - protected static function run_row_query($query) |
|
14 | - { |
|
15 | - return Database::selectRow($query); |
|
16 | - } |
|
17 | - |
|
18 | - protected static function get_count($query) |
|
19 | - { |
|
20 | - return Database::selectRow($query)->count; |
|
21 | - } |
|
22 | - |
|
23 | - protected static function check_exists($query) |
|
24 | - { |
|
25 | - return Database::selectRow($query) !== null; |
|
26 | - } |
|
27 | - |
|
28 | - protected static function escape($string) |
|
29 | - { |
|
30 | - return Database::escape($string); |
|
31 | - } |
|
8 | + protected static function run_query($query) |
|
9 | + { |
|
10 | + return Database::select($query); |
|
11 | + } |
|
12 | + |
|
13 | + protected static function run_row_query($query) |
|
14 | + { |
|
15 | + return Database::selectRow($query); |
|
16 | + } |
|
17 | + |
|
18 | + protected static function get_count($query) |
|
19 | + { |
|
20 | + return Database::selectRow($query)->count; |
|
21 | + } |
|
22 | + |
|
23 | + protected static function check_exists($query) |
|
24 | + { |
|
25 | + return Database::selectRow($query) !== null; |
|
26 | + } |
|
27 | + |
|
28 | + protected static function escape($string) |
|
29 | + { |
|
30 | + return Database::escape($string); |
|
31 | + } |
|
32 | 32 | |
33 | 33 | } |
@@ -2,31 +2,31 @@ |
||
2 | 2 | |
3 | 3 | Loader::loadInstance('utility', 'Database'); |
4 | 4 | |
5 | -abstract class Collector |
|
6 | -{ |
|
5 | +abstract class Collector |
|
6 | +{ |
|
7 | 7 | |
8 | - protected static function run_query($query) |
|
9 | - { |
|
8 | + protected static function run_query($query) |
|
9 | + { |
|
10 | 10 | return Database::select($query); |
11 | 11 | } |
12 | 12 | |
13 | - protected static function run_row_query($query) |
|
14 | - { |
|
13 | + protected static function run_row_query($query) |
|
14 | + { |
|
15 | 15 | return Database::selectRow($query); |
16 | 16 | } |
17 | 17 | |
18 | - protected static function get_count($query) |
|
19 | - { |
|
18 | + protected static function get_count($query) |
|
19 | + { |
|
20 | 20 | return Database::selectRow($query)->count; |
21 | 21 | } |
22 | 22 | |
23 | - protected static function check_exists($query) |
|
24 | - { |
|
23 | + protected static function check_exists($query) |
|
24 | + { |
|
25 | 25 | return Database::selectRow($query) !== null; |
26 | 26 | } |
27 | 27 | |
28 | - protected static function escape($string) |
|
29 | - { |
|
28 | + protected static function escape($string) |
|
29 | + { |
|
30 | 30 | return Database::escape($string); |
31 | 31 | } |
32 | 32 |
@@ -5,13 +5,13 @@ |
||
5 | 5 | class Error301Controller extends PageController |
6 | 6 | { |
7 | 7 | |
8 | - public function __construct($uri) |
|
9 | - { |
|
10 | - Header::redirect($uri); |
|
11 | - exit; |
|
12 | - } |
|
8 | + public function __construct($uri) |
|
9 | + { |
|
10 | + Header::redirect($uri); |
|
11 | + exit; |
|
12 | + } |
|
13 | 13 | |
14 | - protected function set_head_data() {} |
|
15 | - protected function set_body_data() {} |
|
14 | + protected function set_head_data() {} |
|
15 | + protected function set_body_data() {} |
|
16 | 16 | |
17 | 17 | } |
@@ -2,16 +2,20 @@ |
||
2 | 2 | |
3 | 3 | Loader::load('controller', '/PageController'); |
4 | 4 | |
5 | -class Error301Controller extends PageController |
|
6 | -{ |
|
5 | +class Error301Controller extends PageController |
|
6 | +{ |
|
7 | 7 | |
8 | - public function __construct($uri) |
|
9 | - { |
|
8 | + public function __construct($uri) |
|
9 | + { |
|
10 | 10 | Header::redirect($uri); |
11 | 11 | exit; |
12 | 12 | } |
13 | 13 | |
14 | - protected function set_head_data() {} |
|
15 | - protected function set_body_data() {} |
|
14 | + protected function set_head_data() |
|
15 | + { |
|
16 | +} |
|
17 | + protected function set_body_data() |
|
18 | + { |
|
19 | +} |
|
16 | 20 | |
17 | 21 | } |
@@ -5,13 +5,13 @@ |
||
5 | 5 | class Error303Controller extends PageController |
6 | 6 | { |
7 | 7 | |
8 | - public function __construct($uri) |
|
9 | - { |
|
10 | - Header::redirect($uri, 303); |
|
11 | - exit; |
|
12 | - } |
|
8 | + public function __construct($uri) |
|
9 | + { |
|
10 | + Header::redirect($uri, 303); |
|
11 | + exit; |
|
12 | + } |
|
13 | 13 | |
14 | - protected function set_head_data() {} |
|
15 | - protected function set_body_data() {} |
|
14 | + protected function set_head_data() {} |
|
15 | + protected function set_body_data() {} |
|
16 | 16 | |
17 | 17 | } |
@@ -2,16 +2,20 @@ |
||
2 | 2 | |
3 | 3 | Loader::load('controller', '/PageController'); |
4 | 4 | |
5 | -class Error303Controller extends PageController |
|
6 | -{ |
|
5 | +class Error303Controller extends PageController |
|
6 | +{ |
|
7 | 7 | |
8 | - public function __construct($uri) |
|
9 | - { |
|
8 | + public function __construct($uri) |
|
9 | + { |
|
10 | 10 | Header::redirect($uri, 303); |
11 | 11 | exit; |
12 | 12 | } |
13 | 13 | |
14 | - protected function set_head_data() {} |
|
15 | - protected function set_body_data() {} |
|
14 | + protected function set_head_data() |
|
15 | + { |
|
16 | +} |
|
17 | + protected function set_body_data() |
|
18 | + { |
|
19 | +} |
|
16 | 20 | |
17 | 21 | } |
@@ -5,47 +5,47 @@ |
||
5 | 5 | final class FetchFirstPhotoContent extends Content |
6 | 6 | { |
7 | 7 | |
8 | - private static $PHOTO_PLACEHOLDER_MATCH = '@{{photo="(.*)"}}@'; |
|
9 | - private static $IMAGE_NODE = '<img src="%sphoto/%s/%s-size-%s.%s" height="%d" width="%d" alt="%s" />'; |
|
10 | - private static $DEFAULT_RETURN = ''; |
|
11 | - |
|
12 | - protected function execute($is_absolute = false, $size = 'thumb') |
|
13 | - { |
|
14 | - if(preg_match(self::$PHOTO_PLACEHOLDER_MATCH, $this->content, $match) === 1) |
|
15 | - $this->content = $this->get_thumb($match[1], $is_absolute, $size); |
|
16 | - else |
|
17 | - $this->content = self::$DEFAULT_RETURN; |
|
18 | - return; |
|
19 | - } |
|
20 | - |
|
21 | - private function get_file_path($category, $photo, $size, $extension) |
|
22 | - { |
|
23 | - $path = "{$category}/{$photo}-size-{$size}.{$extension}"; |
|
24 | - return Loader::getImagePath('photo', $path); |
|
25 | - } |
|
26 | - |
|
27 | - private function get_thumb($string, $is_absolute, $size) |
|
28 | - { |
|
29 | - list($category, $file_name) = explode('/', $string); |
|
30 | - list($photo, $extension) = explode('.', $file_name); |
|
8 | + private static $PHOTO_PLACEHOLDER_MATCH = '@{{photo="(.*)"}}@'; |
|
9 | + private static $IMAGE_NODE = '<img src="%sphoto/%s/%s-size-%s.%s" height="%d" width="%d" alt="%s" />'; |
|
10 | + private static $DEFAULT_RETURN = ''; |
|
11 | + |
|
12 | + protected function execute($is_absolute = false, $size = 'thumb') |
|
13 | + { |
|
14 | + if(preg_match(self::$PHOTO_PLACEHOLDER_MATCH, $this->content, $match) === 1) |
|
15 | + $this->content = $this->get_thumb($match[1], $is_absolute, $size); |
|
16 | + else |
|
17 | + $this->content = self::$DEFAULT_RETURN; |
|
18 | + return; |
|
19 | + } |
|
20 | + |
|
21 | + private function get_file_path($category, $photo, $size, $extension) |
|
22 | + { |
|
23 | + $path = "{$category}/{$photo}-size-{$size}.{$extension}"; |
|
24 | + return Loader::getImagePath('photo', $path); |
|
25 | + } |
|
26 | + |
|
27 | + private function get_thumb($string, $is_absolute, $size) |
|
28 | + { |
|
29 | + list($category, $file_name) = explode('/', $string); |
|
30 | + list($photo, $extension) = explode('.', $file_name); |
|
31 | 31 | |
32 | - $file_path = $this->get_file_path($category, $photo, $size, $extension); |
|
33 | - $file_size = getimagesize($file_path); |
|
32 | + $file_path = $this->get_file_path($category, $photo, $size, $extension); |
|
33 | + $file_size = getimagesize($file_path); |
|
34 | 34 | |
35 | - Loader::load('collector', 'image/PhotoCollector'); |
|
36 | - $photo_result = PhotoCollector::fetchRow($category, $photo); |
|
37 | - if($photo_result == false) |
|
38 | - return ''; |
|
35 | + Loader::load('collector', 'image/PhotoCollector'); |
|
36 | + $photo_result = PhotoCollector::fetchRow($category, $photo); |
|
37 | + if($photo_result == false) |
|
38 | + return ''; |
|
39 | 39 | |
40 | - $height = $file_size[1]; |
|
41 | - $width = $file_size[0]; |
|
42 | - $description = $photo_result->description; |
|
40 | + $height = $file_size[1]; |
|
41 | + $width = $file_size[0]; |
|
42 | + $description = $photo_result->description; |
|
43 | 43 | |
44 | - $domain = '/'; |
|
45 | - if($is_absolute) |
|
46 | - $domain = Loader::getRootURL(URLDecode::getSite()); |
|
44 | + $domain = '/'; |
|
45 | + if($is_absolute) |
|
46 | + $domain = Loader::getRootURL(URLDecode::getSite()); |
|
47 | 47 | |
48 | - return sprintf(self::$IMAGE_NODE, $domain, $category, $photo, $size, $extension, $height, $width, $description); |
|
49 | - } |
|
48 | + return sprintf(self::$IMAGE_NODE, $domain, $category, $photo, $size, $extension, $height, $width, $description); |
|
49 | + } |
|
50 | 50 | |
51 | 51 | } |
@@ -2,30 +2,31 @@ discard block |
||
2 | 2 | |
3 | 3 | Loader::load('utility', 'Content'); |
4 | 4 | |
5 | -final class FetchFirstPhotoContent extends Content |
|
6 | -{ |
|
5 | +final class FetchFirstPhotoContent extends Content |
|
6 | +{ |
|
7 | 7 | |
8 | 8 | private static $PHOTO_PLACEHOLDER_MATCH = '@{{photo="(.*)"}}@'; |
9 | 9 | private static $IMAGE_NODE = '<img src="%sphoto/%s/%s-size-%s.%s" height="%d" width="%d" alt="%s" />'; |
10 | 10 | private static $DEFAULT_RETURN = ''; |
11 | 11 | |
12 | - protected function execute($is_absolute = false, $size = 'thumb') |
|
13 | - { |
|
14 | - if(preg_match(self::$PHOTO_PLACEHOLDER_MATCH, $this->content, $match) === 1) |
|
15 | - $this->content = $this->get_thumb($match[1], $is_absolute, $size); |
|
16 | - else |
|
17 | - $this->content = self::$DEFAULT_RETURN; |
|
12 | + protected function execute($is_absolute = false, $size = 'thumb') |
|
13 | + { |
|
14 | + if(preg_match(self::$PHOTO_PLACEHOLDER_MATCH, $this->content, $match) === 1) { |
|
15 | + $this->content = $this->get_thumb($match[1], $is_absolute, $size); |
|
16 | + } else { |
|
17 | + $this->content = self::$DEFAULT_RETURN; |
|
18 | + } |
|
18 | 19 | return; |
19 | 20 | } |
20 | 21 | |
21 | - private function get_file_path($category, $photo, $size, $extension) |
|
22 | - { |
|
22 | + private function get_file_path($category, $photo, $size, $extension) |
|
23 | + { |
|
23 | 24 | $path = "{$category}/{$photo}-size-{$size}.{$extension}"; |
24 | 25 | return Loader::getImagePath('photo', $path); |
25 | 26 | } |
26 | 27 | |
27 | - private function get_thumb($string, $is_absolute, $size) |
|
28 | - { |
|
28 | + private function get_thumb($string, $is_absolute, $size) |
|
29 | + { |
|
29 | 30 | list($category, $file_name) = explode('/', $string); |
30 | 31 | list($photo, $extension) = explode('.', $file_name); |
31 | 32 | |
@@ -34,16 +35,18 @@ discard block |
||
34 | 35 | |
35 | 36 | Loader::load('collector', 'image/PhotoCollector'); |
36 | 37 | $photo_result = PhotoCollector::fetchRow($category, $photo); |
37 | - if($photo_result == false) |
|
38 | - return ''; |
|
38 | + if($photo_result == false) { |
|
39 | + return ''; |
|
40 | + } |
|
39 | 41 | |
40 | 42 | $height = $file_size[1]; |
41 | 43 | $width = $file_size[0]; |
42 | 44 | $description = $photo_result->description; |
43 | 45 | |
44 | 46 | $domain = '/'; |
45 | - if($is_absolute) |
|
46 | - $domain = Loader::getRootURL(URLDecode::getSite()); |
|
47 | + if($is_absolute) { |
|
48 | + $domain = Loader::getRootURL(URLDecode::getSite()); |
|
49 | + } |
|
47 | 50 | |
48 | 51 | return sprintf(self::$IMAGE_NODE, $domain, $category, $photo, $size, $extension, $height, $width, $description); |
49 | 52 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | protected function execute($is_absolute = false, $size = 'thumb') |
13 | 13 | { |
14 | - if(preg_match(self::$PHOTO_PLACEHOLDER_MATCH, $this->content, $match) === 1) |
|
14 | + if (preg_match(self::$PHOTO_PLACEHOLDER_MATCH, $this->content, $match) === 1) |
|
15 | 15 | $this->content = $this->get_thumb($match[1], $is_absolute, $size); |
16 | 16 | else |
17 | 17 | $this->content = self::$DEFAULT_RETURN; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | Loader::load('collector', 'image/PhotoCollector'); |
36 | 36 | $photo_result = PhotoCollector::fetchRow($category, $photo); |
37 | - if($photo_result == false) |
|
37 | + if ($photo_result == false) |
|
38 | 38 | return ''; |
39 | 39 | |
40 | 40 | $height = $file_size[1]; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $description = $photo_result->description; |
43 | 43 | |
44 | 44 | $domain = '/'; |
45 | - if($is_absolute) |
|
45 | + if ($is_absolute) |
|
46 | 46 | $domain = Loader::getRootURL(URLDecode::getSite()); |
47 | 47 | |
48 | 48 | return sprintf(self::$IMAGE_NODE, $domain, $category, $photo, $size, $extension, $height, $width, $description); |
@@ -5,50 +5,50 @@ |
||
5 | 5 | final class FixPhotoContent extends Content |
6 | 6 | { |
7 | 7 | |
8 | - private static $PHOTO_PLACEHOLDER_MATCH = '@{{photo="(.*)"}}@'; |
|
9 | - private static $ERROR_CONTENT = '<div class="photo-holder"><p class="photo-caption">Image (%s) could not be found!</p></div>'; |
|
10 | - private static $PHOTO_CONTENT = '<div class="photo-holder"><img src="%sphoto/%s/%s-size-%s.jpg" height="%d" width="%d" alt="%s" /><p class="photo-caption">%s</p></div>'; |
|
8 | + private static $PHOTO_PLACEHOLDER_MATCH = '@{{photo="(.*)"}}@'; |
|
9 | + private static $ERROR_CONTENT = '<div class="photo-holder"><p class="photo-caption">Image (%s) could not be found!</p></div>'; |
|
10 | + private static $PHOTO_CONTENT = '<div class="photo-holder"><img src="%sphoto/%s/%s-size-%s.jpg" height="%d" width="%d" alt="%s" /><p class="photo-caption">%s</p></div>'; |
|
11 | 11 | |
12 | - protected function execute($is_absolute = false, $size = 'medium') |
|
13 | - { |
|
14 | - preg_match_all(self::$PHOTO_PLACEHOLDER_MATCH, $this->content, $matches); |
|
15 | - foreach($matches[1] as $key => $match) |
|
16 | - { |
|
17 | - $photo_content = $this->get_photo_content($match, $size, $is_absolute); |
|
18 | - $this->content = str_replace($matches[0][$key], $photo_content, $this->content); |
|
19 | - } |
|
20 | - return; |
|
21 | - } |
|
12 | + protected function execute($is_absolute = false, $size = 'medium') |
|
13 | + { |
|
14 | + preg_match_all(self::$PHOTO_PLACEHOLDER_MATCH, $this->content, $matches); |
|
15 | + foreach($matches[1] as $key => $match) |
|
16 | + { |
|
17 | + $photo_content = $this->get_photo_content($match, $size, $is_absolute); |
|
18 | + $this->content = str_replace($matches[0][$key], $photo_content, $this->content); |
|
19 | + } |
|
20 | + return; |
|
21 | + } |
|
22 | 22 | |
23 | - private function get_file_path($category, $photo, $size, $extension) |
|
24 | - { |
|
25 | - $path = "{$category}/{$photo}-size-{$size}.{$extension}"; |
|
26 | - return Loader::getImagePath('photo', $path); |
|
27 | - } |
|
23 | + private function get_file_path($category, $photo, $size, $extension) |
|
24 | + { |
|
25 | + $path = "{$category}/{$photo}-size-{$size}.{$extension}"; |
|
26 | + return Loader::getImagePath('photo', $path); |
|
27 | + } |
|
28 | 28 | |
29 | - private function get_photo_content($string, $size, $is_absolute) |
|
30 | - { |
|
31 | - list($category, $file_name) = explode('/', $string); |
|
32 | - list($photo, $extension) = explode('.', $file_name); |
|
29 | + private function get_photo_content($string, $size, $is_absolute) |
|
30 | + { |
|
31 | + list($category, $file_name) = explode('/', $string); |
|
32 | + list($photo, $extension) = explode('.', $file_name); |
|
33 | 33 | |
34 | - $file_path = $this->get_file_path($category, $photo, $size, $extension); |
|
34 | + $file_path = $this->get_file_path($category, $photo, $size, $extension); |
|
35 | 35 | |
36 | - $file_size = getimagesize($file_path); |
|
36 | + $file_size = getimagesize($file_path); |
|
37 | 37 | |
38 | - Loader::load('collector', 'image/PhotoCollector'); |
|
39 | - $photo_result = PhotoCollector::fetchRow($category, $photo); |
|
40 | - if($photo_result == false) |
|
41 | - return ''; |
|
38 | + Loader::load('collector', 'image/PhotoCollector'); |
|
39 | + $photo_result = PhotoCollector::fetchRow($category, $photo); |
|
40 | + if($photo_result == false) |
|
41 | + return ''; |
|
42 | 42 | |
43 | - $height = $file_size[1]; |
|
44 | - $width = $file_size[0]; |
|
45 | - $description = $photo_result->description; |
|
43 | + $height = $file_size[1]; |
|
44 | + $width = $file_size[0]; |
|
45 | + $description = $photo_result->description; |
|
46 | 46 | |
47 | - $domain = '/'; |
|
48 | - if($is_absolute) |
|
49 | - $domain = Loader::getRootUrl('blog'); |
|
47 | + $domain = '/'; |
|
48 | + if($is_absolute) |
|
49 | + $domain = Loader::getRootUrl('blog'); |
|
50 | 50 | |
51 | - return sprintf(self::$PHOTO_CONTENT, $domain, $category, $photo, $size, $height, $width, $description, $description); |
|
52 | - } |
|
51 | + return sprintf(self::$PHOTO_CONTENT, $domain, $category, $photo, $size, $height, $width, $description, $description); |
|
52 | + } |
|
53 | 53 | |
54 | 54 | } |
@@ -2,15 +2,15 @@ discard block |
||
2 | 2 | |
3 | 3 | Loader::load('utility', 'Content'); |
4 | 4 | |
5 | -final class FixPhotoContent extends Content |
|
6 | -{ |
|
5 | +final class FixPhotoContent extends Content |
|
6 | +{ |
|
7 | 7 | |
8 | 8 | private static $PHOTO_PLACEHOLDER_MATCH = '@{{photo="(.*)"}}@'; |
9 | 9 | private static $ERROR_CONTENT = '<div class="photo-holder"><p class="photo-caption">Image (%s) could not be found!</p></div>'; |
10 | 10 | private static $PHOTO_CONTENT = '<div class="photo-holder"><img src="%sphoto/%s/%s-size-%s.jpg" height="%d" width="%d" alt="%s" /><p class="photo-caption">%s</p></div>'; |
11 | 11 | |
12 | - protected function execute($is_absolute = false, $size = 'medium') |
|
13 | - { |
|
12 | + protected function execute($is_absolute = false, $size = 'medium') |
|
13 | + { |
|
14 | 14 | preg_match_all(self::$PHOTO_PLACEHOLDER_MATCH, $this->content, $matches); |
15 | 15 | foreach($matches[1] as $key => $match) |
16 | 16 | { |
@@ -20,14 +20,14 @@ discard block |
||
20 | 20 | return; |
21 | 21 | } |
22 | 22 | |
23 | - private function get_file_path($category, $photo, $size, $extension) |
|
24 | - { |
|
23 | + private function get_file_path($category, $photo, $size, $extension) |
|
24 | + { |
|
25 | 25 | $path = "{$category}/{$photo}-size-{$size}.{$extension}"; |
26 | 26 | return Loader::getImagePath('photo', $path); |
27 | 27 | } |
28 | 28 | |
29 | - private function get_photo_content($string, $size, $is_absolute) |
|
30 | - { |
|
29 | + private function get_photo_content($string, $size, $is_absolute) |
|
30 | + { |
|
31 | 31 | list($category, $file_name) = explode('/', $string); |
32 | 32 | list($photo, $extension) = explode('.', $file_name); |
33 | 33 | |
@@ -37,16 +37,18 @@ discard block |
||
37 | 37 | |
38 | 38 | Loader::load('collector', 'image/PhotoCollector'); |
39 | 39 | $photo_result = PhotoCollector::fetchRow($category, $photo); |
40 | - if($photo_result == false) |
|
41 | - return ''; |
|
40 | + if($photo_result == false) { |
|
41 | + return ''; |
|
42 | + } |
|
42 | 43 | |
43 | 44 | $height = $file_size[1]; |
44 | 45 | $width = $file_size[0]; |
45 | 46 | $description = $photo_result->description; |
46 | 47 | |
47 | 48 | $domain = '/'; |
48 | - if($is_absolute) |
|
49 | - $domain = Loader::getRootUrl('blog'); |
|
49 | + if($is_absolute) { |
|
50 | + $domain = Loader::getRootUrl('blog'); |
|
51 | + } |
|
50 | 52 | |
51 | 53 | return sprintf(self::$PHOTO_CONTENT, $domain, $category, $photo, $size, $height, $width, $description, $description); |
52 | 54 | } |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | protected function execute($is_absolute = false, $size = 'medium') |
13 | 13 | { |
14 | 14 | preg_match_all(self::$PHOTO_PLACEHOLDER_MATCH, $this->content, $matches); |
15 | - foreach($matches[1] as $key => $match) |
|
15 | + foreach ($matches[1] as $key => $match) |
|
16 | 16 | { |
17 | 17 | $photo_content = $this->get_photo_content($match, $size, $is_absolute); |
18 | 18 | $this->content = str_replace($matches[0][$key], $photo_content, $this->content); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | Loader::load('collector', 'image/PhotoCollector'); |
39 | 39 | $photo_result = PhotoCollector::fetchRow($category, $photo); |
40 | - if($photo_result == false) |
|
40 | + if ($photo_result == false) |
|
41 | 41 | return ''; |
42 | 42 | |
43 | 43 | $height = $file_size[1]; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $description = $photo_result->description; |
46 | 46 | |
47 | 47 | $domain = '/'; |
48 | - if($is_absolute) |
|
48 | + if ($is_absolute) |
|
49 | 49 | $domain = Loader::getRootUrl('blog'); |
50 | 50 | |
51 | 51 | return sprintf(self::$PHOTO_CONTENT, $domain, $category, $photo, $size, $height, $width, $description, $description); |
@@ -3,43 +3,43 @@ |
||
3 | 3 | abstract class Content |
4 | 4 | { |
5 | 5 | |
6 | - protected $original_content; |
|
7 | - protected $content; |
|
8 | - |
|
9 | - function __construct($content) |
|
10 | - { |
|
11 | - $this->original_content = $content; |
|
12 | - $this->content = $content; |
|
13 | - } |
|
14 | - |
|
15 | - public function getOriginal() |
|
16 | - { |
|
17 | - return $this->original_content; |
|
18 | - } |
|
19 | - |
|
20 | - abstract protected function execute(); |
|
21 | - |
|
22 | - public function activate() |
|
23 | - { |
|
24 | - $args = func_get_args(); |
|
25 | - call_user_func_array(array($this, 'execute'), $args); |
|
6 | + protected $original_content; |
|
7 | + protected $content; |
|
8 | + |
|
9 | + function __construct($content) |
|
10 | + { |
|
11 | + $this->original_content = $content; |
|
12 | + $this->content = $content; |
|
13 | + } |
|
14 | + |
|
15 | + public function getOriginal() |
|
16 | + { |
|
17 | + return $this->original_content; |
|
18 | + } |
|
19 | + |
|
20 | + abstract protected function execute(); |
|
21 | + |
|
22 | + public function activate() |
|
23 | + { |
|
24 | + $args = func_get_args(); |
|
25 | + call_user_func_array(array($this, 'execute'), $args); |
|
26 | 26 | |
27 | - return $this->content; |
|
28 | - } |
|
27 | + return $this->content; |
|
28 | + } |
|
29 | 29 | |
30 | - public function check() |
|
31 | - { |
|
32 | - $args = func_get_args(); |
|
33 | - $return = call_user_func_array(array($this, 'execute'), $args); |
|
30 | + public function check() |
|
31 | + { |
|
32 | + $args = func_get_args(); |
|
33 | + $return = call_user_func_array(array($this, 'execute'), $args); |
|
34 | 34 | |
35 | - return $return; |
|
36 | - } |
|
37 | - |
|
38 | - public static function instance($class, $content) |
|
39 | - { |
|
40 | - $class_name = "{$class}Content"; |
|
41 | - Loader::load('utility', "content/{$class_name}"); |
|
42 | - return new $class_name($content); |
|
43 | - } |
|
35 | + return $return; |
|
36 | + } |
|
37 | + |
|
38 | + public static function instance($class, $content) |
|
39 | + { |
|
40 | + $class_name = "{$class}Content"; |
|
41 | + Loader::load('utility', "content/{$class_name}"); |
|
42 | + return new $class_name($content); |
|
43 | + } |
|
44 | 44 | |
45 | 45 | } |
@@ -1,42 +1,42 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -abstract class Content |
|
4 | -{ |
|
3 | +abstract class Content |
|
4 | +{ |
|
5 | 5 | |
6 | 6 | protected $original_content; |
7 | 7 | protected $content; |
8 | 8 | |
9 | - function __construct($content) |
|
10 | - { |
|
9 | + function __construct($content) |
|
10 | + { |
|
11 | 11 | $this->original_content = $content; |
12 | 12 | $this->content = $content; |
13 | 13 | } |
14 | 14 | |
15 | - public function getOriginal() |
|
16 | - { |
|
15 | + public function getOriginal() |
|
16 | + { |
|
17 | 17 | return $this->original_content; |
18 | 18 | } |
19 | 19 | |
20 | 20 | abstract protected function execute(); |
21 | 21 | |
22 | - public function activate() |
|
23 | - { |
|
22 | + public function activate() |
|
23 | + { |
|
24 | 24 | $args = func_get_args(); |
25 | 25 | call_user_func_array(array($this, 'execute'), $args); |
26 | 26 | |
27 | 27 | return $this->content; |
28 | 28 | } |
29 | 29 | |
30 | - public function check() |
|
31 | - { |
|
30 | + public function check() |
|
31 | + { |
|
32 | 32 | $args = func_get_args(); |
33 | 33 | $return = call_user_func_array(array($this, 'execute'), $args); |
34 | 34 | |
35 | 35 | return $return; |
36 | 36 | } |
37 | 37 | |
38 | - public static function instance($class, $content) |
|
39 | - { |
|
38 | + public static function instance($class, $content) |
|
39 | + { |
|
40 | 40 | $class_name = "{$class}Content"; |
41 | 41 | Loader::load('utility', "content/{$class_name}"); |
42 | 42 | return new $class_name($content); |
@@ -5,54 +5,54 @@ |
||
5 | 5 | class LifestreamRouter extends Router |
6 | 6 | { |
7 | 7 | |
8 | - protected function get_redirect_array() |
|
9 | - { |
|
10 | - return array( |
|
11 | - (object) array( |
|
12 | - 'pattern' => '@/index.(html|htm|php)$@', |
|
13 | - 'replace' => '/'), |
|
14 | - (object) array( |
|
15 | - 'pattern' => '@^/1/$@', |
|
16 | - 'replace' => '/'), |
|
17 | - (object) array( |
|
18 | - 'pattern' => '@/page_([0-9]+)(/?)$@', |
|
19 | - 'replace' => '/page/$1/'), |
|
20 | - (object) array( |
|
21 | - 'pattern' => '@/tag/([a-z]+)/$@', |
|
22 | - 'replace' => '/$1/'), |
|
23 | - (object) array( |
|
24 | - 'pattern' => '@/tag/([a-z]+)/page/([0-9]+)/$@', |
|
25 | - 'replace' => '/$1/page/$2/'), |
|
26 | - (object) array( |
|
27 | - 'pattern' => '@/tag/([a-z-]+)/$@', |
|
28 | - 'replace' => '/'), |
|
29 | - (object) array( |
|
30 | - 'pattern' => '@/tag/([a-z-]+)/page/([0-9]+)/$@', |
|
31 | - 'replace' => '/')); |
|
32 | - } |
|
8 | + protected function get_redirect_array() |
|
9 | + { |
|
10 | + return array( |
|
11 | + (object) array( |
|
12 | + 'pattern' => '@/index.(html|htm|php)$@', |
|
13 | + 'replace' => '/'), |
|
14 | + (object) array( |
|
15 | + 'pattern' => '@^/1/$@', |
|
16 | + 'replace' => '/'), |
|
17 | + (object) array( |
|
18 | + 'pattern' => '@/page_([0-9]+)(/?)$@', |
|
19 | + 'replace' => '/page/$1/'), |
|
20 | + (object) array( |
|
21 | + 'pattern' => '@/tag/([a-z]+)/$@', |
|
22 | + 'replace' => '/$1/'), |
|
23 | + (object) array( |
|
24 | + 'pattern' => '@/tag/([a-z]+)/page/([0-9]+)/$@', |
|
25 | + 'replace' => '/$1/page/$2/'), |
|
26 | + (object) array( |
|
27 | + 'pattern' => '@/tag/([a-z-]+)/$@', |
|
28 | + 'replace' => '/'), |
|
29 | + (object) array( |
|
30 | + 'pattern' => '@/tag/([a-z-]+)/page/([0-9]+)/$@', |
|
31 | + 'replace' => '/')); |
|
32 | + } |
|
33 | 33 | |
34 | - protected function get_direct_array() |
|
35 | - { |
|
36 | - return array( |
|
37 | - (object) array( |
|
38 | - 'match' => '/', |
|
39 | - 'controller' => 'HomeController'), |
|
40 | - (object) array( |
|
41 | - 'match' => '/about/', |
|
42 | - 'controller' => 'AboutController'), |
|
43 | - (object) array( |
|
44 | - 'match' => '/page/([0-9]+)/', |
|
45 | - 'controller' => 'HomeController'), |
|
46 | - (object) array( |
|
47 | - 'match' => '/([a-z]+)/', |
|
48 | - 'controller' => 'TagController'), |
|
49 | - (object) array( |
|
50 | - 'match' => '/([a-z]+)/page/([0-9]+)/', |
|
51 | - 'controller' => 'TagController'), |
|
52 | - (object) array( |
|
53 | - 'match' => '/([a-z]+)/([0-9]+)/', |
|
54 | - 'controller' => 'PostController')); |
|
55 | - } |
|
34 | + protected function get_direct_array() |
|
35 | + { |
|
36 | + return array( |
|
37 | + (object) array( |
|
38 | + 'match' => '/', |
|
39 | + 'controller' => 'HomeController'), |
|
40 | + (object) array( |
|
41 | + 'match' => '/about/', |
|
42 | + 'controller' => 'AboutController'), |
|
43 | + (object) array( |
|
44 | + 'match' => '/page/([0-9]+)/', |
|
45 | + 'controller' => 'HomeController'), |
|
46 | + (object) array( |
|
47 | + 'match' => '/([a-z]+)/', |
|
48 | + 'controller' => 'TagController'), |
|
49 | + (object) array( |
|
50 | + 'match' => '/([a-z]+)/page/([0-9]+)/', |
|
51 | + 'controller' => 'TagController'), |
|
52 | + (object) array( |
|
53 | + 'match' => '/([a-z]+)/([0-9]+)/', |
|
54 | + 'controller' => 'PostController')); |
|
55 | + } |
|
56 | 56 | |
57 | 57 | } |
58 | 58 |
@@ -2,11 +2,11 @@ discard block |
||
2 | 2 | |
3 | 3 | Loader::load('router', 'Router'); |
4 | 4 | |
5 | -class LifestreamRouter extends Router |
|
6 | -{ |
|
5 | +class LifestreamRouter extends Router |
|
6 | +{ |
|
7 | 7 | |
8 | - protected function get_redirect_array() |
|
9 | - { |
|
8 | + protected function get_redirect_array() |
|
9 | + { |
|
10 | 10 | return array( |
11 | 11 | (object) array( |
12 | 12 | 'pattern' => '@/index.(html|htm|php)$@', |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | 'replace' => '/')); |
32 | 32 | } |
33 | 33 | |
34 | - protected function get_direct_array() |
|
35 | - { |
|
34 | + protected function get_direct_array() |
|
35 | + { |
|
36 | 36 | return array( |
37 | 37 | (object) array( |
38 | 38 | 'match' => '/', |
@@ -5,22 +5,22 @@ |
||
5 | 5 | class AJAXRouter extends Router |
6 | 6 | { |
7 | 7 | |
8 | - protected function get_redirect_array() |
|
9 | - { |
|
10 | - return array( |
|
11 | - (object) array( |
|
12 | - 'pattern' => '@^/$@', |
|
13 | - 'replace' => 'https://home.jacobemerick.com/')); |
|
14 | - } |
|
8 | + protected function get_redirect_array() |
|
9 | + { |
|
10 | + return array( |
|
11 | + (object) array( |
|
12 | + 'pattern' => '@^/$@', |
|
13 | + 'replace' => 'https://home.jacobemerick.com/')); |
|
14 | + } |
|
15 | 15 | |
16 | - protected function get_direct_array() |
|
17 | - { |
|
18 | - return array( |
|
19 | - (object) array( |
|
20 | - 'match' => '/get/portfolioImage.json', |
|
21 | - 'controller' => 'GetPortfolioImageController'), |
|
16 | + protected function get_direct_array() |
|
17 | + { |
|
18 | + return array( |
|
19 | + (object) array( |
|
20 | + 'match' => '/get/portfolioImage.json', |
|
21 | + 'controller' => 'GetPortfolioImageController'), |
|
22 | 22 | ); |
23 | - } |
|
23 | + } |
|
24 | 24 | |
25 | 25 | } |
26 | 26 |
@@ -2,19 +2,19 @@ |
||
2 | 2 | |
3 | 3 | Loader::load('router', 'Router'); |
4 | 4 | |
5 | -class AJAXRouter extends Router |
|
6 | -{ |
|
5 | +class AJAXRouter extends Router |
|
6 | +{ |
|
7 | 7 | |
8 | - protected function get_redirect_array() |
|
9 | - { |
|
8 | + protected function get_redirect_array() |
|
9 | + { |
|
10 | 10 | return array( |
11 | 11 | (object) array( |
12 | 12 | 'pattern' => '@^/$@', |
13 | 13 | 'replace' => 'https://home.jacobemerick.com/')); |
14 | 14 | } |
15 | 15 | |
16 | - protected function get_direct_array() |
|
17 | - { |
|
16 | + protected function get_direct_array() |
|
17 | + { |
|
18 | 18 | return array( |
19 | 19 | (object) array( |
20 | 20 | 'match' => '/get/portfolioImage.json', |
@@ -5,11 +5,11 @@ discard block |
||
5 | 5 | 'waterfall/WaterfallCollector')); |
6 | 6 | Loader::load('router', 'Router'); |
7 | 7 | |
8 | -class WaterfallRouter extends Router |
|
9 | -{ |
|
8 | +class WaterfallRouter extends Router |
|
9 | +{ |
|
10 | 10 | |
11 | - protected function get_redirect_array() |
|
12 | - { |
|
11 | + protected function get_redirect_array() |
|
12 | + { |
|
13 | 13 | return array( |
14 | 14 | (object) array( |
15 | 15 | 'pattern' => '@/index.(html|htm|php)$@', |
@@ -71,8 +71,8 @@ discard block |
||
71 | 71 | ); |
72 | 72 | } |
73 | 73 | |
74 | - protected function check_for_special_redirect($uri) |
|
75 | - { |
|
74 | + protected function check_for_special_redirect($uri) |
|
75 | + { |
|
76 | 76 | if (preg_match('@^/falls/([a-z\'-]+)(/?)$@', $uri, $matches)) { |
77 | 77 | $alias = $matches[1]; |
78 | 78 | $alias = str_replace("'", '', $alias); |
@@ -128,8 +128,8 @@ discard block |
||
128 | 128 | return $uri; |
129 | 129 | } |
130 | 130 | |
131 | - protected function get_direct_array() |
|
132 | - { |
|
131 | + protected function get_direct_array() |
|
132 | + { |
|
133 | 133 | return array( |
134 | 134 | (object) array( |
135 | 135 | 'match' => '/', |
@@ -8,24 +8,24 @@ discard block |
||
8 | 8 | class WaterfallRouter extends Router |
9 | 9 | { |
10 | 10 | |
11 | - protected function get_redirect_array() |
|
12 | - { |
|
13 | - return array( |
|
14 | - (object) array( |
|
15 | - 'pattern' => '@/index.(html|htm|php)$@', |
|
16 | - 'replace' => '/'), |
|
17 | - (object) array( |
|
18 | - 'pattern' => '@^/home(/?)$@', |
|
19 | - 'replace' => '/'), |
|
20 | - (object) array( |
|
21 | - 'pattern' => '@^/falls/by-rating(/?)$@', |
|
22 | - 'replace' => '/falls/'), |
|
23 | - (object) array( |
|
24 | - 'pattern' => '@^/falls/by-rating/([0-9]+)(/?)$@', |
|
25 | - 'replace' => '/falls/'), |
|
26 | - (object) array( |
|
27 | - 'pattern' => '@^/falls/results(/?)$@', |
|
28 | - 'replace' => '/falls/'), |
|
11 | + protected function get_redirect_array() |
|
12 | + { |
|
13 | + return array( |
|
14 | + (object) array( |
|
15 | + 'pattern' => '@/index.(html|htm|php)$@', |
|
16 | + 'replace' => '/'), |
|
17 | + (object) array( |
|
18 | + 'pattern' => '@^/home(/?)$@', |
|
19 | + 'replace' => '/'), |
|
20 | + (object) array( |
|
21 | + 'pattern' => '@^/falls/by-rating(/?)$@', |
|
22 | + 'replace' => '/falls/'), |
|
23 | + (object) array( |
|
24 | + 'pattern' => '@^/falls/by-rating/([0-9]+)(/?)$@', |
|
25 | + 'replace' => '/falls/'), |
|
26 | + (object) array( |
|
27 | + 'pattern' => '@^/falls/results(/?)$@', |
|
28 | + 'replace' => '/falls/'), |
|
29 | 29 | (object) array( |
30 | 30 | 'pattern' => '@^/log(/?)$@', |
31 | 31 | 'replace' => '/journal/'), |
@@ -35,47 +35,47 @@ discard block |
||
35 | 35 | (object) array( |
36 | 36 | 'pattern' => '@^/map/([^/]+)(/?)$@', |
37 | 37 | 'replace' => '/map/'), |
38 | - (object) array( |
|
39 | - 'pattern' => '@^/about/([a-z]*)(/?)$@', |
|
40 | - 'replace' => '/about/'), |
|
41 | - (object) array( |
|
42 | - 'pattern' => '@^/birch-creek/birch-creek-falls/?$@', |
|
43 | - 'replace' => '/birch-creek/gold-mine-falls/'), |
|
44 | - (object) array( |
|
45 | - 'pattern' => '@^/big-iron-river/bonanza-falls/?$@', |
|
46 | - 'replace' => '/big-iron-river/greenwood-falls/'), |
|
47 | - (object) array( |
|
48 | - 'pattern' => '@^/east-branch-huron-river/east-branch-huron-river-falls/?$@', |
|
49 | - 'replace' => '/east-branch-huron-river/east-branch-falls/'), |
|
50 | - (object) array( |
|
51 | - 'pattern' => '@^/montreal-river/lower-montreal-falls/?$@', |
|
52 | - 'replace' => '/montreal-river/montreal-falls/'), |
|
53 | - (object) array( |
|
54 | - 'pattern' => '@^/manganese-creek/manganese-gorge-falls/?$@', |
|
55 | - 'replace' => '/manganese-creek/manganese-falls/'), |
|
56 | - (object) array( |
|
57 | - 'pattern' => '@^/dead-river/tourist-park-dam-falls/?$@', |
|
58 | - 'replace' => '/dead-river/tourist-park-falls/'), |
|
59 | - (object) array( |
|
60 | - 'pattern' => '@^/sturgeon-river/upper-sturgeon-falls/?$@', |
|
61 | - 'replace' => '/sturgeon-river/little-spruce-falls/'), |
|
62 | - (object) array( |
|
63 | - 'pattern' => '@^/tahquamenon-river/upper-tahquamenon-falls/?$@', |
|
64 | - 'replace' => '/tahquamenon-river/tahquamenon-falls/'), |
|
65 | - (object) array( |
|
66 | - 'pattern' => '@^/west-branch-huron-river/west-branch-huron-river-falls/?@', |
|
67 | - 'replace' => '/west-branch-huron-river/west-branch-falls/'), |
|
68 | - (object) array( |
|
69 | - 'pattern' => '@^/west-branch-yellow-dog-river/west-branch-yellow-dog-falls/?@', |
|
70 | - 'replace' => '/west-branch-yellow-dog-river/west-branch-falls/'), |
|
71 | - (object) array( |
|
72 | - 'pattern' => '@^/baltimore-river/peanut-butter-falls/?@', |
|
73 | - 'replace' => '/baltimore-river/konteko-falls/'), |
|
74 | - ); |
|
75 | - } |
|
38 | + (object) array( |
|
39 | + 'pattern' => '@^/about/([a-z]*)(/?)$@', |
|
40 | + 'replace' => '/about/'), |
|
41 | + (object) array( |
|
42 | + 'pattern' => '@^/birch-creek/birch-creek-falls/?$@', |
|
43 | + 'replace' => '/birch-creek/gold-mine-falls/'), |
|
44 | + (object) array( |
|
45 | + 'pattern' => '@^/big-iron-river/bonanza-falls/?$@', |
|
46 | + 'replace' => '/big-iron-river/greenwood-falls/'), |
|
47 | + (object) array( |
|
48 | + 'pattern' => '@^/east-branch-huron-river/east-branch-huron-river-falls/?$@', |
|
49 | + 'replace' => '/east-branch-huron-river/east-branch-falls/'), |
|
50 | + (object) array( |
|
51 | + 'pattern' => '@^/montreal-river/lower-montreal-falls/?$@', |
|
52 | + 'replace' => '/montreal-river/montreal-falls/'), |
|
53 | + (object) array( |
|
54 | + 'pattern' => '@^/manganese-creek/manganese-gorge-falls/?$@', |
|
55 | + 'replace' => '/manganese-creek/manganese-falls/'), |
|
56 | + (object) array( |
|
57 | + 'pattern' => '@^/dead-river/tourist-park-dam-falls/?$@', |
|
58 | + 'replace' => '/dead-river/tourist-park-falls/'), |
|
59 | + (object) array( |
|
60 | + 'pattern' => '@^/sturgeon-river/upper-sturgeon-falls/?$@', |
|
61 | + 'replace' => '/sturgeon-river/little-spruce-falls/'), |
|
62 | + (object) array( |
|
63 | + 'pattern' => '@^/tahquamenon-river/upper-tahquamenon-falls/?$@', |
|
64 | + 'replace' => '/tahquamenon-river/tahquamenon-falls/'), |
|
65 | + (object) array( |
|
66 | + 'pattern' => '@^/west-branch-huron-river/west-branch-huron-river-falls/?@', |
|
67 | + 'replace' => '/west-branch-huron-river/west-branch-falls/'), |
|
68 | + (object) array( |
|
69 | + 'pattern' => '@^/west-branch-yellow-dog-river/west-branch-yellow-dog-falls/?@', |
|
70 | + 'replace' => '/west-branch-yellow-dog-river/west-branch-falls/'), |
|
71 | + (object) array( |
|
72 | + 'pattern' => '@^/baltimore-river/peanut-butter-falls/?@', |
|
73 | + 'replace' => '/baltimore-river/konteko-falls/'), |
|
74 | + ); |
|
75 | + } |
|
76 | 76 | |
77 | - protected function check_for_special_redirect($uri) |
|
78 | - { |
|
77 | + protected function check_for_special_redirect($uri) |
|
78 | + { |
|
79 | 79 | if (preg_match('@^/falls/([a-z\'-]+)(/?)$@', $uri, $matches)) { |
80 | 80 | $alias = $matches[1]; |
81 | 81 | $alias = str_replace("'", '', $alias); |
@@ -128,78 +128,78 @@ discard block |
||
128 | 128 | } |
129 | 129 | } |
130 | 130 | |
131 | - return $uri; |
|
132 | - } |
|
131 | + return $uri; |
|
132 | + } |
|
133 | 133 | |
134 | - protected function get_direct_array() |
|
135 | - { |
|
136 | - return array( |
|
137 | - (object) array( |
|
138 | - 'match' => '/', |
|
139 | - 'controller' => 'HomeController'), |
|
140 | - (object) array( |
|
141 | - 'match' => '/falls/', |
|
142 | - 'controller' => 'WaterfallListController'), |
|
143 | - (object) array( |
|
144 | - 'match' => '/falls/([0-9]+)/', |
|
145 | - 'controller' => 'WaterfallListController'), |
|
146 | - (object) array( |
|
147 | - 'match' => '/([a-z]+)-county/', |
|
148 | - 'controller' => 'CountyListController'), |
|
149 | - (object) array( |
|
150 | - 'match' => '/([a-z]+)-county/([0-9]+)/', |
|
151 | - 'controller' => 'CountyListController'), |
|
152 | - (object) array( |
|
153 | - 'match' => '/([a-z0-9-]+)-(creek|river)/', |
|
154 | - 'controller' => 'WatercourseListController'), |
|
155 | - (object) array( |
|
156 | - 'match' => '/([a-z0-9-]+)-(creek|river)/([0-9]+)/', |
|
157 | - 'controller' => 'WatercourseListController'), |
|
158 | - (object) array( |
|
159 | - 'match' => '/category/([a-z]+)/', |
|
160 | - 'controller' => 'CategoryListController'), |
|
161 | - (object) array( |
|
162 | - 'match' => '/category/([a-z]+)/([0-9]+)/', |
|
163 | - 'controller' => 'CategoryListController'), |
|
164 | - (object) array( |
|
165 | - 'match' => '/([a-z0-9-]+)-(creek|river)/([a-z-]+)/', |
|
166 | - 'controller' => 'WaterfallController'), |
|
167 | - (object) array( |
|
168 | - 'match' => '/map/', |
|
169 | - 'controller' => 'MapController'), |
|
134 | + protected function get_direct_array() |
|
135 | + { |
|
136 | + return array( |
|
137 | + (object) array( |
|
138 | + 'match' => '/', |
|
139 | + 'controller' => 'HomeController'), |
|
140 | + (object) array( |
|
141 | + 'match' => '/falls/', |
|
142 | + 'controller' => 'WaterfallListController'), |
|
143 | + (object) array( |
|
144 | + 'match' => '/falls/([0-9]+)/', |
|
145 | + 'controller' => 'WaterfallListController'), |
|
146 | + (object) array( |
|
147 | + 'match' => '/([a-z]+)-county/', |
|
148 | + 'controller' => 'CountyListController'), |
|
149 | + (object) array( |
|
150 | + 'match' => '/([a-z]+)-county/([0-9]+)/', |
|
151 | + 'controller' => 'CountyListController'), |
|
152 | + (object) array( |
|
153 | + 'match' => '/([a-z0-9-]+)-(creek|river)/', |
|
154 | + 'controller' => 'WatercourseListController'), |
|
155 | + (object) array( |
|
156 | + 'match' => '/([a-z0-9-]+)-(creek|river)/([0-9]+)/', |
|
157 | + 'controller' => 'WatercourseListController'), |
|
158 | + (object) array( |
|
159 | + 'match' => '/category/([a-z]+)/', |
|
160 | + 'controller' => 'CategoryListController'), |
|
161 | + (object) array( |
|
162 | + 'match' => '/category/([a-z]+)/([0-9]+)/', |
|
163 | + 'controller' => 'CategoryListController'), |
|
164 | + (object) array( |
|
165 | + 'match' => '/([a-z0-9-]+)-(creek|river)/([a-z-]+)/', |
|
166 | + 'controller' => 'WaterfallController'), |
|
167 | + (object) array( |
|
168 | + 'match' => '/map/', |
|
169 | + 'controller' => 'MapController'), |
|
170 | 170 | (object) array( |
171 | 171 | 'match' => '/map/#[a-z-/]+', |
172 | 172 | 'controller' => 'MapController'), |
173 | - (object) array( |
|
174 | - 'match' => '/journal/', |
|
175 | - 'controller' => 'LogListController'), |
|
176 | - (object) array( |
|
177 | - 'match' => '/journal/([0-9]+)/', |
|
178 | - 'controller' => 'LogListController'), |
|
179 | - (object) array( |
|
180 | - 'match' => '/journal/[a-z-]+/', |
|
181 | - 'controller' => 'LogController'), |
|
182 | - (object) array( |
|
183 | - 'match' => '/companion/([a-z-]+)/', |
|
184 | - 'controller' => 'CompanionListController'), |
|
185 | - (object) array( |
|
186 | - 'match' => '/companion/([a-z-]+)/([0-9]+)/', |
|
187 | - 'controller' => 'CompanionListController'), |
|
188 | - (object) array( |
|
189 | - 'match' => '/period/([a-z-]+)/', |
|
190 | - 'controller' => 'PeriodListController'), |
|
191 | - (object) array( |
|
192 | - 'match' => '/period/([a-z-]+)/([0-9]+)/', |
|
193 | - 'controller' => 'PeriodListController'), |
|
194 | - (object) array( |
|
195 | - 'match' => '/journal/tag/([a-z-]+)/', |
|
196 | - 'controller' => 'LogTagListController'), |
|
197 | - (object) array( |
|
198 | - 'match' => '/journal/tag/([a-z-]+)/([0-9]+)/', |
|
199 | - 'controller' => 'LogTagListController'), |
|
200 | - (object) array( |
|
201 | - 'match' => '/about/', |
|
202 | - 'controller' => 'AboutController')); |
|
203 | - } |
|
173 | + (object) array( |
|
174 | + 'match' => '/journal/', |
|
175 | + 'controller' => 'LogListController'), |
|
176 | + (object) array( |
|
177 | + 'match' => '/journal/([0-9]+)/', |
|
178 | + 'controller' => 'LogListController'), |
|
179 | + (object) array( |
|
180 | + 'match' => '/journal/[a-z-]+/', |
|
181 | + 'controller' => 'LogController'), |
|
182 | + (object) array( |
|
183 | + 'match' => '/companion/([a-z-]+)/', |
|
184 | + 'controller' => 'CompanionListController'), |
|
185 | + (object) array( |
|
186 | + 'match' => '/companion/([a-z-]+)/([0-9]+)/', |
|
187 | + 'controller' => 'CompanionListController'), |
|
188 | + (object) array( |
|
189 | + 'match' => '/period/([a-z-]+)/', |
|
190 | + 'controller' => 'PeriodListController'), |
|
191 | + (object) array( |
|
192 | + 'match' => '/period/([a-z-]+)/([0-9]+)/', |
|
193 | + 'controller' => 'PeriodListController'), |
|
194 | + (object) array( |
|
195 | + 'match' => '/journal/tag/([a-z-]+)/', |
|
196 | + 'controller' => 'LogTagListController'), |
|
197 | + (object) array( |
|
198 | + 'match' => '/journal/tag/([a-z-]+)/([0-9]+)/', |
|
199 | + 'controller' => 'LogTagListController'), |
|
200 | + (object) array( |
|
201 | + 'match' => '/about/', |
|
202 | + 'controller' => 'AboutController')); |
|
203 | + } |
|
204 | 204 | |
205 | 205 | } |