. * * @author TechFuze * @copyright Copyright (c) 2013 - 2016, Techfuze. (http://techfuze.net) * @copyright Copyright (c) 1996 - 2015, Free Software Foundation, Inc. (http://www.fsf.org/) * @license http://opensource.org/licenses/GPL-3.0 GPLv3 License * * @link http://techfuze.net/fuzeworks * @since Version 0.0.1 * * @version Version 1.0.0 */ namespace FuzeWorks\Event; use FuzeWorks\Event; /** * Event that gets loaded when a model is loaded. * * Use this to cancel the loading of a model, or change the model to be loaded * * @author Abel Hoogeveen * @copyright Copyright (c) 2013 - 2016, Techfuze. (http://techfuze.net) */ class ModelLoadEvent extends Event { /** * The directories the model can get loaded from. * * @var array */ public $directories = array(); /** * The name of the model to be loaded. * * @var string|null */ public $modelName = null; public function init($modelName, $directories) { $this->modelName = $modelName; $this->directories = $directories; } }