In this tutorial we will explore how to add custom modules and views to the CMS. By doing this you can extend the functionality of the back office to use your custom PHP to carry out various tasks. Once this tutorial is complete you should be comfortable with creating modules and views for any siteaccess with the CMS and be able to appreciate situations when creating custom modules and views would be suitable.
At the end of this tutorial you should be comfortable with exporting multiple users from PHP scripts into a external file using a cronjob. You should also be comfortable with filtering fetch statements in PHP.
At the end of this tutorial you should be comfortable with exporting user information from PHP scripts.
This tutorial will show you how to create eZ Publish objects using PHP to allow you to dynamically create or import content from elsewhere. After reading this article you should be able to create objects for any situation including those with XML fields, image or file fields and object relations.
Timing: | Jan 18 2025 00:03:03 |
Script start | |
Timing: | Jan 18 2025 00:03:03 |
Module start 'layout' | |
Timing: | Jan 18 2025 00:03:03 |
Module start 'community' | |
Timing: | Jan 18 2025 00:03:03 |
Module end 'community' | |
Timing: | Jan 18 2025 00:03:03 |
Script end |
Total runtime | 0.1278 sec |
Peak memory usage | 4,096.0000 KB |
Database Queries | 60 |
Checkpoint | Start (sec) | Duration (sec) | Memory at start (KB) | Memory used (KB) |
---|---|---|---|---|
Script start | 0.0000 | 0.0051 | 589.6875 | 152.6094 |
Module start 'layout' | 0.0051 | 0.0029 | 742.2969 | 31.6719 |
Module start 'community' | 0.0080 | 0.1189 | 773.9688 | 645.8359 |
Module end 'community' | 0.1268 | 0.0009 | 1,419.8047 | 14.6406 |
Script end | 0.1277 | 1,434.4453 |
Accumulator | Duration (sec) | Duration (%) | Count | Average (sec) |
---|---|---|---|---|
Ini load | ||||
Load cache | 0.0028 | 2.1544 | 14 | 0.0002 |
Check MTime | 0.0012 | 0.9440 | 14 | 0.0001 |
Mysql Total | ||||
Database connection | 0.0007 | 0.5384 | 1 | 0.0007 |
Mysqli_queries | 0.0914 | 71.5335 | 60 | 0.0015 |
Looping result | 0.0008 | 0.6427 | 57 | 0.0000 |
Template Total | 0.1074 | 84.0 | 2 | 0.0537 |
Template load | 0.0013 | 1.0024 | 2 | 0.0006 |
Template processing | 0.1061 | 83.0230 | 2 | 0.0530 |
Template load and register function | 0.0001 | 0.0784 | 1 | 0.0001 |
Override | ||||
Cache load | 0.0010 | 0.7572 | 12 | 0.0001 |
states | ||||
state_id_array | 0.0037 | 2.8788 | 4 | 0.0009 |
state_identifier_array | 0.0016 | 1.2672 | 4 | 0.0004 |
Sytem overhead | ||||
Fetch class attribute name | 0.0007 | 0.5615 | 4 | 0.0002 |
class_abstraction | ||||
Instantiating content class attribute | 0.0000 | 0.0063 | 4 | 0.0000 |
General | ||||
dbfile | 0.0001 | 0.1168 | 7 | 0.0000 |
String conversion | 0.0000 | 0.0078 | 3 | 0.0000 |
Note: percentages do not add up to 100% because some accumulators overlap |
Usage | Requested template | Template | Template loaded | Edit | Override |
---|---|---|---|---|---|
1 | community/articles.tpl | <No override> | extension/community_design/design/suncana/templates/community/articles.tpl | ||
4 | content/datatype/view/ezxmltext.tpl | <No override> | extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tpl | ||
4 | content/datatype/view/ezxmltags/paragraph.tpl | <No override> | extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tpl | ||
1 | content/datatype/view/ezxmltags/separator.tpl | <No override> | extension/community_design/design/suncana/templates/content/datatype/view/ezxmltags/separator.tpl | ||
1 | print_pagelayout.tpl | <No override> | extension/community/design/community/templates/print_pagelayout.tpl | ||
Number of times templates used: 11 Number of unique templates used: 5 |
Time used to render debug report: 0.0001 secs