OEModule\PatientTicketing\widgets\BaseTicketAssignment::init PHP Method

init() public method

public init ( )
    public function init()
    {
        // if the widget has javascript, load it in
        $cls_name = explode('\\', get_class($this));
        $this->shortName = array_pop($cls_name);
        $path = dirname(__FILE__);
        if (file_exists($path . '/js/' . $this->shortName . '.js')) {
            $assetManager = \Yii::app()->getAssetManager();
            $this->assetFolder = $assetManager->publish($path . '/js/');
            $assetManager->registerScriptFile('js/' . $this->shortName . '.js', 'application.modules.PatientTicketing.widgets');
        }
        parent::init();
    }