diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-04 11:22:51 -0700 | 
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-04 11:22:51 -0700 | 
| commit | 8c351b12266a63dc2ef68d895cd2a21250a41cd8 (patch) | |
| tree | 8a33b63e4250c906cbad919414093c2d3545b874 /modules/gallery/helpers/items_rest.php | |
| parent | 110350776d5bda3b8535f0329ea69b914daa8019 (diff) | |
Change the name of the private format_restful_item to _format_restful_item so that the File_Structure_Test will pass.
Diffstat (limited to 'modules/gallery/helpers/items_rest.php')
| -rw-r--r-- | modules/gallery/helpers/items_rest.php | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/modules/gallery/helpers/items_rest.php b/modules/gallery/helpers/items_rest.php index 32597a65..32f6c036 100644 --- a/modules/gallery/helpers/items_rest.php +++ b/modules/gallery/helpers/items_rest.php @@ -45,10 +45,10 @@ class items_rest_Core {          if (access::can("view", $item)) {            if (isset($types)) {              if (in_array($item->type, $types)) { -              $items[] = items_rest::format_restful_item($item); +              $items[] = items_rest::_format_restful_item($item);              }            } else { -            $items[] = items_rest::format_restful_item($item); +            $items[] = items_rest::_format_restful_item($item);            }          }        } @@ -57,9 +57,9 @@ class items_rest_Core {        if (!access::can("view", $item)) {          throw new Kohana_404_Exception();        } -      $items[] = items_rest::format_restful_item($item); +      $items[] = items_rest::_format_restful_item($item);        while (($item = $item->parent()) != null) { -        array_unshift($items, items_rest::format_restful_item($item)); +        array_unshift($items, items_rest::_format_restful_item($item));        };      } @@ -74,7 +74,7 @@ class items_rest_Core {      return $item;    } -  private static function format_restful_item($item) { +  private static function _format_restful_item($item) {      $item_rest = array("url" => rest::url("item", $item),                         "entity" => $item->as_restful_array(),                         "relationships" => rest::relationships("item", $item)); | 
