A configuration file is loaded.
Parameters: |
|
---|
<?php
// Listening to the event
Event::register_function('config|nos::controller/admin/page/page', function(&$config)
{
// ...
}
// Triggering the event
$config = Config::load('nos::controller/admin/page/page', true);
Also works with absolute paths :
<?php
// Listening to the event
Event::register_function('config|/data/www/novius-os/local/config/test.php', function(&$config)
{
// ...
}
// Triggering the event (file must exists)
$config = Config::load('/data/www/novius-os/local/config/test.php', true);
A configuration array is loaded.
Parameters: |
|
---|
<?php
// Listening to the event
Event::register_function('config|group', function(&$config)
{
// ...
}
// Triggering the event
Config::load(array(), 'group');
An .html page is requested.
Parameters: |
|
---|
<?php
Event::register_function('front.start', function($params)
{
$url =& $params['url'];
$cache_path =& $params['cache_path'];
// ...
});
Additional processing on a WYSIWYG (HTML content).
Parameters: |
|
---|
<?php
Event::register_function('front.parse_wysiwyg', function(&$content)
{
// ...
});
Additional processing on the page (HTML content).
Parameters: |
|
---|
<?php
Event::register_function('front.display', function(&$html)
{
// ...
});
Page to display have been found.
Parameters: |
|
---|
<?php
Event::register('front.pageFound', function($params)
{
$page = $params['page'];
// ...
});
Before that the response be sended.
Parameters: |
|
---|
<?php
Event::register_function('front.response', function($params)
{
$content =& $params['content'];
$status =& $params['status'];
$headers =& $params['headers'];
// ...
});
An .html page was requested, but not found.
Parameters: |
|
---|
<?php
Event::register('front.404NotFound', function($params)
{
$url = $params['url'];
// ...
});
New in version 0.2.0.2.
A inexistant file is requested. Can be media or attachment file.
Parameters: |
|
---|
<?php
Event::register_function('404.start', function($params)
{
$url =& $params['url'];
// ...
});
Media to send have been found.
Parameters: |
|
---|
<?php
Event::register_function('404.mediaFound', function($params)
{
$url = $params['url'];
$media = $params['media'];
$send_file =& $params['send_file'];
// ...
});
A inexistant media file is requested.
Parameters: |
|
---|
<?php
Event::register('404.mediaNotFound', function($url)
{
// ...
});
Attachment file to send have been found.
Parameters: |
|
---|
<?php
Event::register_function('404.attachmentFound', function($params)
{
$url = $params['url'];
$attachement = $params['attachement'];
$send_file =& $params['send_file'];
// ...
});
A inexistant attachment file is requested.
Parameters: |
|
---|
<?php
Event::register('404.attachmentNotFound', function($url)
{
// ...
});
A inexistant file is requested. No attachment or media file matched the URL.
Parameters: |
|
---|
<?php
Event::register('404.end', function($url)
{
// ...
});
Triggered after recuperation and before parsing of installed launchers.
Parameters: |
|
---|
<?php
Event::register_function('admin.launchers', function(&$launchers)
{
// ...
});
New in version 4.2.
A user just successfully connected to the back-office.
<?php
Event::register('admin.loginSuccess', function()
{
// ...
});
A user is trying to connect to the back-office with an email or an invalid password.
<?php
Event::register('admin.loginFail', function()
{
// ...
});
A user just successfully re-connected to the back-office using the cookie.
<?php
Event::register('admin.loginSuccessWithCookie', function()
{
// ...
});
A user has failed to connect to the back-office using the cookie.
<?php
Event::register('admin.loginFailWithCookie', function()
{
// ...
});
Before sending an email.
Parameters: |
|
---|
<?php
Event::register('email.before_send', function($email)
{
// ...
}
After a mail was sent.
Parameters: |
|
---|
<?php
Event::register('email.after_send', function($email)
{
// ...
}
On email send error.
Parameters: |
|
---|
A deprecated message will be write in log.
Parameters: |
|
---|
<?php
Event::register('nos.deprecated', function($params)
{
$message = $params['message'];
$since = $params['since'];
$debug_backtrace = $params['debug_backtrace'];
// ...
});
A migration throw an exception. Exception propagation can be stopped.
Parameters: |
|
---|
<?php
Event::register_function('migrate.exception', function($params)
{
$e = $params['e'];
$ignore = $params['ignore'];
$migration =& $params['migration'];
// ...
$ignore = true; // The exception will not be propagated
});