Forums / Suggestions / For understanding of ez core and libraries(background working)

For understanding of ez core and libraries(background working)

Author Message

Romeo Antony

Monday 06 September 2010 5:03:12 am

Hi,

I would like to understand the background working by going through the classes ,kernel,lib etc. but it seems that stuck even though I know the OOP pgming .but can anyone suggest me where should i start first for a proper understanding of ez core.

Matthieu Sévère

Monday 06 September 2010 6:54:29 am

Hi romeo,

You should start by trying to develop custom extension and especially custom module / views in your extension.

Once you have done that you can look into kernel/content and see that it's a module like yours and all the files in there are linked to different views.

Then you can look into the definition of fetch for example.

Once this is done you can start enjoying ezpersistant object in kernel classes and start developping custom datatypes.

This is more or less the way I have followed but there is plenty of other way to learn ;)

Enjoy :)

--
eZ certified developer: http://ez.no/certification/verify/346216

Romeo Antony

Monday 06 September 2010 4:28:56 pm

Hi Matthieu,

thank you for your reply.

Ya I was trying that way .But beginning ,a bit confusing. But no worries. I will catch it.

Romeo

André R.

Tuesday 07 September 2010 3:12:45 am

Make sure you follow the misc Articles / Tutorials on these topics, and make sure you lookup some of the simpler examples in eZ Publish / ezjscore (I guess you mean ezjscore and not the older ezcore extension) / other included extensions for additional examples.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Matthieu Sévère

Tuesday 07 September 2010 4:28:21 am

"

I guess you mean ezjscore and not the older ezcore extension

"

I think he meant eZ Kernel (core), or I also didn't understand :D

--
eZ certified developer: http://ez.no/certification/verify/346216

Romeo Antony

Tuesday 07 September 2010 5:42:54 pm

Mathieu,

"I guess you mean ezjscore and not the older ezcore extension) / other included extensions for additional examples. "

I think Andre suggested extension ezjscore not eZ Kernel for simplicity. Isn't it?

Regards

Romeo

Matthieu Sévère

Wednesday 08 September 2010 12:17:11 am

"

Mathieu,

"I guess you mean ezjscore and not the older ezcore extension) / other included extensions for additional examples. "

I think Andre suggested extension ezjscore not eZ Kernel for simplicity. Isn't it?

Regards

Romeo

"

Oh ok, good idea eZ JSCore is an awesome extension !

--
eZ certified developer: http://ez.no/certification/verify/346216

Romeo Antony

Wednesday 08 September 2010 2:03:21 am

Hi Mathiew,

I am trying to grasp how to develop the custom extensions. But I am stuck at certain point while I following the cutom extension development form ez.Can u do a favour by explain what following code mean

function &handleList( $parameters = array(), $asCount = false )
{
$parameters = array_merge( array( 'as_object' => true,
'offset' => false,
'limit' => false ),
$parameters );
$asObject = $parameters['as_object'];
$offset = $parameters['offset'];
$limit = $parameters['limit'];
$limitArray = null;
if ( !$asCount and $offset !== false and $limit !== false )
$limitArray = array( 'offset' => $offset,
'length' => $limit );

return eZPersistentObject::fetchObjectList( Mymodule::definition(),
null, null, null, $limitArray,
$asObject );

}

I couldn't understand the logic here in above function.

The above function is in the URL

http://ez.no/ezpublish/documentation/development/extensions/module/module_tutorial_part_1

I wll be thankfull for any help.

Matthieu Sévère

Wednesday 08 September 2010 2:17:42 am

Hi Romeo,

This method is part of a class that extends eZPersistentObject. It means that the class will be mapped to a table in your database (this is defined in the method definition, you defined the table and the fields of your object). Thus, you will be able to easily store object to the database using the create and store methods.

About the function handleList it is a helper to fetch data from your table. As your class extends eZPersistentObject you can use the fetchObjectList method to easily retrieve data from DB.

++

--
eZ certified developer: http://ez.no/certification/verify/346216

Romeo Antony

Wednesday 08 September 2010 5:01:10 am

Thank you for your valauble help.

I will go through http://pubsvn.ez.no/doxygen/3.9/html/classeZPersistentObject.html

and i will try to understand it.

regards

romeo

eZ debug

Timing: Jan 18 2025 01:09:56
Script start
Timing: Jan 18 2025 01:09:56
Module start 'content'
Timing: Jan 18 2025 01:09:57
Module end 'content'
Timing: Jan 18 2025 01:09:57
Script end

Main resources:

Total runtime0.9124 sec
Peak memory usage4,096.0000 KB
Database Queries217

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 587.9688180.7969
Module start 'content' 0.00900.7641 768.7656686.9063
Module end 'content' 0.77310.1392 1,455.6719350.2031
Script end 0.9123  1,805.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4441210.0002
Check MTime0.00140.1583210.0001
Mysql Total
Database connection0.00130.138810.0013
Mysqli_queries0.798387.50202170.0037
Looping result0.00260.28162150.0000
Template Total0.868195.120.4341
Template load0.00210.227920.0010
Template processing0.866094.920820.4330
Template load and register function0.00010.011310.0001
states
state_id_array0.00150.163410.0015
state_identifier_array0.00180.192920.0009
Override
Cache load0.00200.2175880.0000
Sytem overhead
Fetch class attribute can translate value0.00170.181840.0004
Fetch class attribute name0.00120.1318130.0001
XML
Image XML parsing0.00190.209440.0005
class_abstraction
Instantiating content class attribute0.00000.0047200.0000
General
dbfile0.00720.7914400.0002
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
10content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
2content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 42
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs