- added to FunctionBase: bool register_default_models (default true)

if true then winix will add default models for ezc templates such as "request", "item", etc.
- some methods from templates/item.cpp moved to Item
This commit is contained in:
2021-06-20 18:04:50 +02:00
parent e7c7324058
commit 79eda7abb0
21 changed files with 271 additions and 83 deletions

View File

@@ -38,12 +38,6 @@
#include <string>
#include "winixmodel.h"
#include "itemcontent.h"
// temporary
#include "core/log.h"
#include "funinfo.h"
#include "templates/htmltextstream.h"
#include "templates/misc.h"
@@ -189,8 +183,10 @@ public:
bool can_remove_child(long child_user_id) const;
bool can_be_removed() const;
bool has_read_access();
bool has_write_access();
bool has_read_access() const;
bool has_write_access() const;
bool has_read_write_access() const;
bool has_read_exec_access() const;
bool type_is_symlink() const;
bool type_is_file() const;
@@ -202,7 +198,6 @@ public:
bool is_current_dir() const;
protected:
CalcItemsHelper calc_items_by_url(long parent_id, const std::wstring & url);
@@ -216,9 +211,8 @@ protected:
void print_dir_without_slash(EzcEnv & env);
void dir_link(EzcEnv & env);
void link(EzcEnv & env);
void url_is(EzcEnv & env);
void execute(EzcEnv & env);
MORM_MEMBER_FIELD(Item)