Location: PHPKode > projects > PhpBlock > A9.8/script/listener/imagemanagerlistener.class.php
<?php
include_once $PATH_TO_CODE."/script/listener/abstractlistener.class.php";
include_once $PATH_TO_CODE."/script/event/precommitevent.class.php";

class ImageManagerListener extends AbstractListener {

    public function __construct() {
        parent::__construct();
    }

    public function supports($parEventType) {
        return PreCommitEvent::$PRE_COMMIT_EVENT == $parEventType;
    }

    public function fire($parEvent) {
        //PreCommitEvent
        ImageManager::getInstance()->generateImageToGenerate();
    }
}
?>
Return current item: PhpBlock