adding functions to kernel modules

Author Message

Victor Donich

Friday 11 March 2005 8:23:09 am

Hello

Are there any common procedure to add some functions to a kernel modules? For example, what should I do if I wish to make simplier publishing with easier permissions handling? It would be nice to have a 'publish' function in 'content' module so I wish to write it. Is there any way or overloading whole content module is required?

Derick Rethans

Tuesday 15 March 2005 12:06:17 am

Hello,

The publish process and permission handling are very integrated into the core of eZ publish, and this can not be overridden in an extension. What you're basically requesting is a way to rewrite those parts of eZ publish which you *can* do, but you've to rewrite a few PHP files in the standard distribution (overriding the content module). I can assure you that that would be virtually impossible though.

Derick

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 18 2025 15:19:02
Script start
Timing: Jan 18 2025 15:19:02
Module start 'layout'
Timing: Jan 18 2025 15:19:02
Module start 'content'
Timing: Jan 18 2025 15:19:02
Module end 'content'
Timing: Jan 18 2025 15:19:02
Script end

Main resources:

Total runtime0.0169 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.9219152.6250
Module start 'layout' 0.00630.0040 740.546939.4609
Module start 'content' 0.01030.0046 780.007889.2422
Module end 'content' 0.01490.0020 869.250030.3047
Script end 0.0169  899.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003218.8184140.0002
Check MTime0.001810.4007140.0001
Mysql Total
Database connection0.00106.185510.0010
Mysqli_queries0.002816.315830.0009
Looping result0.00000.083110.0000
Template Total0.00179.810.0017
Template load0.00095.103910.0009
Template processing0.00084.708110.0008
Override
Cache load0.00053.189910.0005
General
dbfile0.00031.663380.0000
String conversion0.00000.066240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs