public function __construct() { phpgwapi_cache::session_set('frontend', 'tab', $GLOBALS['phpgw']->locations->get_id('frontend', '.drawings')); parent::__construct(); $this->location_code = $this->header_state['selected_location']; // $this->location_code = '1102-01'; }
public function __construct() { phpgwapi_cache::session_set('frontend', 'tab', $GLOBALS['phpgw']->locations->get_id('frontend', '.ticket')); parent::__construct(); $this->location_code = $this->header_state['selected_location']; $GLOBALS['phpgw']->translation->add_app('property'); }
public function __construct() { $extra_tabs = array(); $extra_tabs[0] = array('label' => lang('messages'), 'link' => $GLOBALS['phpgw']->link('/', array('menuaction' => "frontend.uimessages.index", 'noframework' => $noframework))); phpgwapi_cache::session_set('frontend', 'extra_tabs', $extra_tabs); phpgwapi_cache::session_set('frontend', 'tab', 0); parent::__construct(); }
public function __construct() { $this->contract_state_identifier_doc = "contract_state_in"; $this->contracts_per_location_identifier_doc = "contracts_in_per_location"; $this->form_url_doc = "index.php?menuaction=frontend.uicontract_documents.index"; phpgwapi_cache::session_set('frontend', 'tab', $GLOBALS['phpgw']->locations->get_id('frontend', '.document.contracts')); parent::__construct(); $this->location_code = $this->header_state['selected_location']; // $this->location_code = '1102-01'; }
public function __construct() { $GLOBALS['phpgw']->translation->add_app('property'); $this->location_id = phpgw::get_var('location_id', 'int', 'REQUEST', 0); $location_info = $GLOBALS['phpgw']->locations->get_name($this->location_id); $this->acl_location = $location_info['location']; $this->account = $GLOBALS['phpgw_info']['user']['account_id']; $this->acl =& $GLOBALS['phpgw']->acl; $this->acl_read = $this->acl->check($this->acl_location, PHPGW_ACL_READ, 'frontend'); phpgwapi_cache::session_set('frontend', 'tab', $this->location_id); parent::__construct(); $this->location_code = $this->header_state['selected_location']; /* $this->bo->location_code = $this->location_code; $_org_units = array(); if(is_array($this->header_state['org_unit'])) { foreach ($this->header_state['org_unit'] as $org_unit) { $_org_unit_id = (int)$org_unit['ORG_UNIT_ID']; $_subs = execMethod('property.sogeneric.read_tree',array('node_id' => $_org_unit_id, 'type' => 'org_unit')); $_org_units[$_org_unit_id] = true; foreach($_subs as $entry) { $_org_units[$entry['id']] = true; if(isset($entry['children']) && $entry['children']) { $this->_get_children($entry['children'], $_org_units); } } } } $org_units = array_keys($_org_units); $this->bo->org_units = $org_units; */ }
public function __construct() { parent::__construct(); }
public function __construct() { $GLOBALS['phpgw']->translation->add_app('property'); $this->location_id = phpgw::get_var('location_id', 'int', 'REQUEST', 0); $location_info = $GLOBALS['phpgw']->locations->get_name($this->location_id); $this->acl_location = $location_info['location']; $location_arr = explode('.', $this->acl_location); $this->account = $GLOBALS['phpgw_info']['user']['account_id']; $this->bo = CreateObject('property.boentity'); $this->bocommon =& $this->bo->bocommon; $this->soadmin_entity =& $this->bo->soadmin_entity; $this->entity_id = isset($location_arr[2]) && $location_arr[2] ? $location_arr[2] : $this->bo->entity_id; $this->cat_id = isset($location_arr[3]) && $location_arr[3] ? $location_arr[3] : $this->bo->cat_id; $this->type = $this->bo->type; $this->type_app = $this->bo->type_app; if (isset($location_arr[3])) { $this->bo->entity_id = $this->entity_id; $this->bo->cat_id = $this->cat_id; $this->acl_location = ".{$this->type}.{$this->entity_id}"; if ($this->cat_id) { $this->acl_location .= ".{$this->cat_id}"; } } $this->acl =& $GLOBALS['phpgw']->acl; $this->acl_read = $this->acl->check($this->acl_location, PHPGW_ACL_READ, 'property'); $this->acl_add = $this->acl->check($this->acl_location, PHPGW_ACL_ADD, 'property'); $this->acl_edit = $this->acl->check($this->acl_location, PHPGW_ACL_EDIT, 'property'); $this->acl_delete = $this->acl->check($this->acl_location, PHPGW_ACL_DELETE, 'property'); $this->start = $this->bo->start; $this->query = $this->bo->query; $this->sort = $this->bo->sort; $this->order = $this->bo->order; $this->filter = $this->bo->filter; $this->part_of_town_id = $this->bo->part_of_town_id; $this->district_id = $this->bo->district_id; $this->status = $this->bo->status; // $this->location_code = $this->bo->location_code; $this->p_num = $this->bo->p_num; $GLOBALS['phpgw']->session->appsession('entity_id', 'property', $this->entity_id); $this->start_date = $this->bo->start_date; $this->end_date = $this->bo->end_date; $this->allrows = $this->bo->allrows; $this->category_dir = "{$this->type}_{$this->entity_id}_{$this->cat_id}"; $this->bo->category_dir = $this->category_dir; phpgwapi_cache::session_set('frontend', 'tab', $this->location_id); parent::__construct(); $this->location_code = $this->header_state['selected_location']; $this->bo->location_code = $this->location_code; $_org_units = array(); if (is_array($this->header_state['org_unit'])) { foreach ($this->header_state['org_unit'] as $org_unit) { $_org_unit_id = (int) $org_unit['ORG_UNIT_ID']; $_subs = execMethod('property.sogeneric.read_tree', array('node_id' => $_org_unit_id, 'type' => 'org_unit')); $_org_units[$_org_unit_id] = true; foreach ($_subs as $entry) { $_org_units[$entry['id']] = true; if (isset($entry['children']) && $entry['children']) { $this->_get_children($entry['children'], $_org_units); } } } } $org_units = array_keys($_org_units); $this->bo->org_units = $org_units; }
public function __construct() { phpgwapi_cache::session_set('frontend', 'tab', $GLOBALS['phpgw']->locations->get_id('frontend', '.delegates'), $GLOBALS['phpgw_info']['user']['account_id']); parent::__construct(); }
public function __construct() { parent::__construct(); // $this->get_contracts_per_location(); }