Siteacces

Author Message

Carlos Revillo

Monday 12 June 2006 6:00:10 am

Hi. I'm working with a multilingual site now. I've developed an extension and i need to know from wich siteaccess i'm "calling" the php script i wrote.

is there any way to know that?.

I mean, i have my module.php file, with something like
$ViewList ['a']=array('script'=>'a.php');

In my a.php file i want to know wich siteaccess i am now.

Sorry for my english. Thanks.

Ɓukasz Serwatka

Monday 12 June 2006 6:20:59 am

You can read current siteaccess name from:

$GLOBALS['eZCurrentAccess']['name']

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 01:18:27
Script start
Timing: Jan 19 2025 01:18:27
Module start 'layout'
Timing: Jan 19 2025 01:18:27
Module start 'content'
Timing: Jan 19 2025 01:18:28
Module end 'content'
Timing: Jan 19 2025 01:18:28
Script end

Main resources:

Total runtime0.8016 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 590.2656152.6094
Module start 'layout' 0.00520.0032 742.875039.4141
Module start 'content' 0.00850.7917 782.2891524.8281
Module end 'content' 0.80020.0014 1,307.11728.1953
Script end 0.8015  1,315.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4529160.0002
Check MTime0.00140.1727160.0001
Mysql Total
Database connection0.00070.086510.0007
Mysqli_queries0.755594.2538540.0140
Looping result0.00060.0721520.0000
Template Total0.763495.220.3817
Template load0.00250.316920.0013
Template processing0.760894.914320.3804
Template load and register function0.00030.032610.0003
states
state_id_array0.00190.241110.0019
state_identifier_array0.00170.208620.0008
Override
Cache load0.00210.2650130.0002
Sytem overhead
Fetch class attribute can translate value0.00060.079420.0003
Fetch class attribute name0.00140.173730.0005
XML
Image XML parsing0.00080.094620.0004
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00130.1680180.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 7

Time used to render debug report: 0.0003 secs