some ezc functions from templates/item.cpp moved to Item and ItemContent
methods HasAccess() HasReadAccess() and similar moved from System to Item and ItemContent
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
|
||||
#include "funinfo.h"
|
||||
#include "templates/htmltextstream.h"
|
||||
#include "templates/misc.h"
|
||||
|
||||
|
||||
|
||||
@@ -183,16 +184,23 @@ public:
|
||||
|
||||
void propagate_connector();
|
||||
|
||||
bool can_remove_child(const User * current_user, long child_user_id) const;
|
||||
bool can_be_removed(const User * current_user) const;
|
||||
bool can_remove_child(long child_user_id) const;
|
||||
bool can_be_removed() const;
|
||||
|
||||
void print_dir(Ezc::FunInfo<HtmlTextStream> & env);
|
||||
void print_dir_without_slash(Ezc::FunInfo<HtmlTextStream> & env);
|
||||
bool has_read_access();
|
||||
bool has_write_access();
|
||||
|
||||
bool type_is_symlink() const;
|
||||
bool type_is_file() const;
|
||||
bool type_is_dir() const;
|
||||
bool type_is_none() const;
|
||||
|
||||
bool is_root_dir() const;
|
||||
bool is_parent_for_current_dir() const;
|
||||
bool is_current_dir() const;
|
||||
|
||||
void is(Ezc::FunInfo<HtmlTextStream> & env);
|
||||
void dir_link(Ezc::FunInfo<HtmlTextStream> & env);
|
||||
void link(Ezc::FunInfo<HtmlTextStream> & env);
|
||||
void is_parent_for_current_dir(Ezc::FunInfo<HtmlTextStream> & env);
|
||||
void is_current_dir(Ezc::FunInfo<HtmlTextStream> & env);
|
||||
void is_root(Ezc::FunInfo<HtmlTextStream> & env);
|
||||
|
||||
|
||||
protected:
|
||||
@@ -204,7 +212,17 @@ protected:
|
||||
bool do_migration_to_3();
|
||||
bool do_migration_to_4();
|
||||
|
||||
void print_dir(EzcEnv & env);
|
||||
void print_dir_without_slash(EzcEnv & env);
|
||||
void dir_link(EzcEnv & env);
|
||||
void link(EzcEnv & env);
|
||||
|
||||
void url_is(EzcEnv & env);
|
||||
|
||||
|
||||
|
||||
MORM_MEMBER_FIELD(Item)
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user