Exemplo n.º 1
0
 *
 * @package admin
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
// We should activate toolbar menu items for this controller
$activate_collection_toolbar = true;
if (valid_blog_requested()) {
    $current_User->check_perm('blog_cats', 'edit', true, $blog);
    $edited_Blog =& $Blog;
} else {
    $action = 'nil';
}
load_class('chapters/model/_chaptercache.class.php', 'ChapterCache');
$ChapterCache = new ChapterCache();
// Restrict to chapters of the specific blog:
$subset_ID = $blog;
$permission_to_edit = $current_User->check_perm('blog_cats', '', false, $blog);
// ---- Below is a modified generic category list editor: -----
// fp> this is an example of where we could benefit from controler classes which could be derived
// fp> we basically need to add a "move" action.
/*
class Controler
{
	method get_params() // and init object
	method do_action()
	method display_payload()
}
the $AdminUI->foo() structural calls would move to the dispatcher.
*/
Exemplo n.º 2
0
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
if (valid_blog_requested()) {
    $current_User->check_perm('blog_cats', 'edit', true, $blog);
    $edited_Blog =& $Blog;
} else {
    $action = 'nil';
}
$restrict_title = T_('Cannot delete category');
//«%s»
// This must be initialized to false before checking the delete restrictions
$checked_delete = false;
load_class('chapters/model/_chaptercache.class.php', 'ChapterCache');
$GenericCategoryCache = new ChapterCache();
// Restrict to chapters of the specific blog:
$subset_ID = $blog;
$list_view_path = 'chapters/views/_chapter_list.view.php';
$permission_to_edit = $current_User->check_perm('blog_cats', '', false, $blog);
// The form will be on its own page:
$form_below_list = false;
$edit_view_path = 'chapters/views/_chapter.form.php';
// ---- Below is a modified generic category list editor: -----
// fp> this is an example of where we could benefit from controler classes which could be derived
// fp> we basically need to add a "move" action.
/*
class Controler
{
	method get_params() // and init object
	method do_action()