Using kernel classes in custom extension/datatype

Using kernel classes in custom extension/datatype

Thursday 18 October 2007 10:16:09 am - 2 replies

Author Message

Damien Pobel

Thursday 18 October 2007 10:51:55 am

Hi Emil,

You can use classes, functions from eZ Publish kernel in extensions and for most types of extension you have to do that. For example, for a custom datatype, you have to define a class which should look like :

<?php
include_once( "kernel/classes/ezdatatype.php" );

class yourDatatype extends eZDatatype
{

}
?>

Remember to always include files from the root of your eZ Publish installation.

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Emil Lazaro

Thursday 18 October 2007 12:02:38 pm

Thanks,

does that apply to the classes of the core extensions and datatypes, i.e. instead of using \kernel\shop\classes/ezsimpleprice.php, can I use the class in /kernel/classes/datatypes/ezprice/ezpricetype.php ?

You must be logged in to post messages in this topic!

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