eZ Publish  [4.2]
ezincludefunctions.php File Reference

Go to the source code of this file.

Functions

 datatype_class ($datatype, $className)
 ext_activate ($extension, $name)
 ext_class ($extension, $name)
 ext_include ($extension, $name)
 extension_path ($extension, $withWWWDir=false, $withHost=false, $withProtocol=false)
 isExtension ($path)
 kernel_class ($name)
 kernel_common ($name)
 kernel_include ($name)
 lib_class ($libName, $name)
 lib_include ($libName, $name)
 nameFromPath ($path)

Detailed Description

Contains some useful kernel include functions which are nice to use in extensions.

Definition in file ezincludefunctions.php.


Function Documentation

datatype_class ( datatype,
className 
)

Definition at line 48 of file ezincludefunctions.php.

ext_activate ( extension,
name 
)

Activates the file named $name in extension $extension

Note:
This works similar to include_once() meaning that it's included one time.

Definition at line 139 of file ezincludefunctions.php.

ext_class ( extension,
name 
)

Activates the file named $name in extension $extension

Note:
This works similar to include_once() meaning that it's included one time.

Definition at line 150 of file ezincludefunctions.php.

ext_include ( extension,
name 
)

Includes the file named $name in extension $extension

Note:
This works similar to include() meaning that it always includes the file.

Definition at line 128 of file ezincludefunctions.php.

extension_path ( extension,
withWWWDir = false,
withHost = false,
withProtocol = false 
)

Definition at line 57 of file ezincludefunctions.php.

isExtension ( path) [static]
Deprecated:
Returns:
true if this path is related to some extension.
Parameters:
$pathPath to check.
Note:
The root of an extension is considered to be in this path too.

Definition at line 116 of file ezincludefunctions.php.

kernel_class ( name)

Definition at line 171 of file ezincludefunctions.php.

kernel_common ( name)

Definition at line 41 of file ezincludefunctions.php.

kernel_include ( name)

Definition at line 35 of file ezincludefunctions.php.

lib_class ( libName,
name 
)

Definition at line 164 of file ezincludefunctions.php.

lib_include ( libName,
name 
)

Definition at line 158 of file ezincludefunctions.php.

nameFromPath ( path) [static]
Deprecated:
eZExtension::nameFromPath( __FILE__ ) executed in any file of an extension can help you to find the path to additional resources
Returns:
Name of the extension a path belongs to.
Parameters:
$pathPath to check.

Definition at line 97 of file ezincludefunctions.php.