diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-29 20:02:30 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-29 20:02:30 +0000 |
commit | 7ae004f76fafa3f0d31b39c45505e66d9be9b8cf (patch) | |
tree | d43673ba9d334d7467093309c727a76eaa029afb /modules/rearrange/helpers/rearrange.php | |
parent | 70de32ebb48df84080f180e41703bb0064093ba1 (diff) |
The gui part of rearranging albums and photos on the welcome page. Haven't finished the ajax back end to actually do the move, but thought i'd put the gui up so people can play
Diffstat (limited to 'modules/rearrange/helpers/rearrange.php')
-rw-r--r-- | modules/rearrange/helpers/rearrange.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/modules/rearrange/helpers/rearrange.php b/modules/rearrange/helpers/rearrange.php new file mode 100644 index 00000000..815014bc --- /dev/null +++ b/modules/rearrange/helpers/rearrange.php @@ -0,0 +1,33 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2008 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class rearrange_Core { + public static function get_html($item=null) { + $view = new View("rearrange.html"); + + $view->root = null; + if (empty($item)) { + $item = ORM::factory("item", 1); + $view->root = $item; + } + + $view->children = $item->children(); + return $view; + } +} |