Class Structure_Model
Structure_Model
- Core_ORM
-
Core_Entity
-
Structure_Model
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at structure/model.php
Methods summary
public
|
|
public
array
|
|
public
|
|
public
string
|
|
public
string|null
|
|
public
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
#
nameBadge( Admin_Form_Field $oAdmin_Form_Field,
Backend badge |
public
integer
|
|
public
string
|
|
public
|
|
public
array
|
|
public
array
|
|
public
|
#
getByPathAndParentId( string $path, integer $parent_id )
Get active structure node by path and parent_id |
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
stdObject
|
|
protected
|
|
public
integer
|
|
public
Search_Page
|
|
public
|
|
public
object
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
#
typeBackend( Admin_Form_Field $oAdmin_Form_Field,
Backend badge |
Methods inherited from Core_Entity
__call(),
_getCopiedName(),
addAllowedTag(),
addEntities(),
addEntity(),
addForbiddenTag(),
addForbiddenTags(),
addXmlTag(),
applyMarksDeleted(),
changeCopiedName(),
clear(),
clearEntities(),
clearEntitiesAfterGetXml(),
clearXmlTags(),
create(),
factory(),
find(),
findAll(),
getCount(),
getEntities(),
getFieldIDs(),
getFields(),
getForbiddenTags(),
getMarksDeleted(),
getName(),
getNameColumn(),
getRelations(),
getTableColums(),
getTrashDescription(),
getXmlTagName(),
getXmlTags(),
removeForbiddenTag(),
setCheck(),
setMarksDeleted(),
setXmlTagName(),
undelete(),
update()
Methods inherited from Core_ORM
__clone(),
__get(),
__isset(),
__set(),
__toString(),
_convertPropertyValue(),
_getRelation(),
_init(),
_load(),
_loadColumnCacheDefaultValues(),
_loadColumns(),
_onAfterLoad(),
_onBeforeLoad(),
_relations(),
_setDefaultValues(),
_setPreloadValues(),
add(),
changed(),
check(),
chunk(),
clearColumnCache(),
clearRelationCache(),
clearRelationModelCache(),
deleteAll(),
getChangedData(),
getClassName(),
getDatabase(),
getFirst(),
getLast(),
getModelName(),
getPrimaryKey(),
getPrimaryKeyName(),
getTableColumns(),
getTableName(),
isCallable(),
isEmptyPrimaryKey(),
load(),
loaded(),
queryBuilder(),
remove(),
setDatabaseDriver(),
setRelations(),
setValues(),
toArray()
Properties summary
protected
mixed
|
$_modelName
Model name |
#
'structure'
|
protected
array
|
$_preloadValues
List of preloaded values |
#
array(
'parent_id' => 0,
'document_id' => 0,
'lib_id' => 0,
'type' => 0,
'sorting' => 0,
'https' => 0,
'active' => 1,
'indexing' => 1,
'changefreq' => 2,
'priority' => 0.5,
'siteuser_group_id' => 0,
'template_id' => 0,
// Warning: Удалить после объединения
'data_template_id' => 0,
'show' => 1,
'url' => ''
)
|
protected
array
|
$_belongsTo
Belongs to relations |
#
array(
'structure' => array('foreign_key' => 'parent_id'),
'structure_menu' => array(),
'template' => array(),
'document' => array(),
'lib' => array(),
'site' => array(),
'user' => array(),
'siteuser' => array(),
'siteuser_group' => array(),
// Warning: Удалить
'data_template' => array()
)
|
protected
array
|
$_hasMany
One-to-many or many-to-many relations |
#
array(
'structure' => array('foreign_key' => 'parent_id')
)
|
protected
array
|
$_hasOne
One-to-one relations |
#
array(
'forum' => array()
)
|
protected
array
|
$_forbiddenTags
Forbidden tags. If list of tags is empty, all tags will show. |
#
array(
'deleted',
'user_id',
'options'
)
|
protected
boolean
|
$_hasRevisions
Has revisions |
#
TRUE
|
protected
array
|
$_propertyValues
Values of all properties of structure node |
#
NULL
|
protected
boolean
|
$_showXmlProperties
Show properties in XML |
#
FALSE
|
Properties inherited from Core_Entity
$_allowedTags,
$_cacheAllowedTags,
$_cacheFieldIDs,
$_cacheForbiddenTags,
$_cacheShortcodeTags,
$_changeCopiedName,
$_check,
$_childrenEntities,
$_clearEntitiesAfterGetXml,
$_marksDeleted,
$_nameColumn,
$_shortcodeTags,
$_tagName,
$_typicalForbiddenTags,
$_xmlTags
Properties inherited from Core_ORM
$_bSetPreloadValues,
$_changedColumns,
$_columnCache,
$_columnCacheDefaultValues,
$_dataValues,
$_database,
$_databaseDriver,
$_loaded,
$_modelColumns,
$_primaryKey,
$_queryBuilder,
$_relationCache,
$_relationModelCache,
$_relations,
$_saved,
$_skipColumns,
$_sorting,
$_tableColumns,
$_tableName,
$cache,
$columnCache,
$config,
$relationCache