Class Company_Model
Company_Model
- Core_ORM
-
Core_Entity
-
Company_Model
Direct known subclasses
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at company/model.php
Methods summary
public
|
|
public
array('departments'
|
#
getDepartmentUsersPostsTree( $iCompanyDepartmentParentId = 0, $oUser = NULL, $bUserIsHeader = NULL )
Company departments tree with users and users posts |
public
|
#
showDepartmentsAndUsers4DealTemplateStepAccess( $deal_template_step_id, $aDepartment = NULL, $oPotentialHeadOfDepartment = NULL )
Показ прав доступа к этапу сделки отделов и сотрудников с учетом организационной структуры компании |
public
array
|
#
fillDepartments( integer $iCompanyDepartmentParentId = 0, integer $aExclude = array(), integer $iLevel = 0, integer $iLevel,… )
Build visual representation of group tree |
public
array
|
#
fillDepartmentsAndUsers( integer $iCompanyDepartmentParentId = 0, integer $aExclude = array(), integer $iLevel = 0 )
Build visual representation of group tree |
public
string
|
#
nameBadge( Admin_Form_Field $oAdmin_Form_Field,
Backend badge |
public
string
|
#
structureBadge( Admin_Form_Field $oAdmin_Form_Field,
Backend badge |
public
string
|
#
activityBadge( Admin_Form_Field $oAdmin_Form_Field,
Backend badge |
public
string
|
#
locationBadge( Admin_Form_Field $oAdmin_Form_Field,
Backend badge |
public
|
|
public
string
|
|
public
stdObject
|
|
protected
|
|
public
string
|
|
public
string
|
|
public
array
|
#
getUsersOptions( )
Get user's list for companies
|
public
|
Methods inherited from Core_Entity
__call(),
_getCopiedName(),
addAllowedTag(),
addEntities(),
addEntity(),
addForbiddenTag(),
addForbiddenTags(),
addXmlTag(),
applyMarksDeleted(),
changeCopiedName(),
clear(),
clearEntities(),
clearEntitiesAfterGetXml(),
clearXmlTags(),
copy(),
create(),
factory(),
find(),
findAll(),
getCount(),
getEntities(),
getFieldIDs(),
getFields(),
getForbiddenTags(),
getMarksDeleted(),
getName(),
getNameColumn(),
getRelatedSite(),
getRelations(),
getTableColums(),
getTrashDescription(),
getXmlTagName(),
getXmlTags(),
markDeleted(),
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(),
save(),
setDatabaseDriver(),
setRelations(),
setValues(),
toArray()
Properties summary
public
integer
|
$structure
Callback structure |
#
1
|
public
integer
|
$activity
Callback activity |
#
1
|
public
integer
|
$location
Callback location |
#
1
|
protected
array
|
$_hasMany
One-to-many or many-to-many relations |
#
array(
'company_department' => array(),
'company_site' => array(),
'shop' => array(),
'shop_warehouse' => array(),
'site' => array('through' => 'company_site'),
'company_directory_email' => array(),
'directory_email' => array('through' => 'company_directory_email', 'foreign_key' => 'company_id'),
'company_directory_phone' => array(),
'directory_phone' => array('through' => 'company_directory_phone', 'foreign_key' => 'company_id'),
'company_directory_address' => array(),
'directory_address' => array('through' => 'company_directory_address', 'foreign_key' => 'company_id'),
'company_directory_website' => array(),
'directory_website' => array('through' => 'company_directory_website', 'foreign_key' => 'company_id'),
'user' => array('through' => 'company_department_post_user'),
'company_department_post_user' => array(),
'company_activity' => array(),
'company_location' => array(),
'dms_nomenclature' => array(),
'dms_nomenclature_dir' => array(),
'dms_case_archive' => array(),
)
|
protected
array
|
$_belongsTo
Belongs to relations |
#
array(
'user' => array()
)
|
protected
array
|
$_forbiddenTags
Forbidden tags. If list of tags is empty, all tags will show. |
#
array(
'deleted',
'user_id',
/*'~address',
'~phone',
'~fax',
'~site',
'~email'*/
)
|
protected static
array
|
$_aDepartmentsTree
Company departments tree |
#
array()
|
Properties inherited from Core_Entity
$_allowedTags,
$_cacheAllowedTags,
$_cacheFieldIDs,
$_cacheForbiddenTags,
$_cacheShortcodeTags,
$_changeCopiedName,
$_check,
$_childrenEntities,
$_clearEntitiesAfterGetXml,
$_hasRevisions,
$_marksDeleted,
$_nameColumn,
$_shortcodeTags,
$_tagName,
$_typicalForbiddenTags,
$_xmlTags
Properties inherited from Core_ORM
$_bSetPreloadValues,
$_changedColumns,
$_columnCache,
$_columnCacheDefaultValues,
$_dataValues,
$_database,
$_databaseDriver,
$_hasOne,
$_loaded,
$_modelColumns,
$_modelName,
$_preloadValues,
$_primaryKey,
$_queryBuilder,
$_relationCache,
$_relationModelCache,
$_relations,
$_saved,
$_skipColumns,
$_sorting,
$_tableColumns,
$_tableName,
$cache,
$columnCache,
$config,
$relationCache