behaviors/ExtensionBehavior.php
public function import($alias, $forceInclude = false)
    {
        if (($baseAlias = $this->getAlias()) !== null) {
            $alias = $baseAlias . '.' . $alias;
        }
        return Yii::import($alias, $forceInclude);
    }
public function import($alias, $forceInclude = false)
    {
        if (($baseAlias = $this->getAlias()) !== null) {
            $alias = $baseAlias . '.' . $alias;
        }
        return Yii::import($alias, $forceInclude);
    }
public function import ( $ alias , $ forceInclude = false ) { if ( ( $ baseAlias = $ this -> getAlias ( ) ) !== null ) { $ alias = $ baseAlias . '.' . $ alias ; } return Yii :: import ( $ alias , $ forceInclude ) ; }
Imports the a class or directory.
The path alias is automatically prepended if applicable.
@param string $alias path alias to be imported.
@param boolean $forceInclude whether to include the class file immediately.
@return string the class name or the directory that this alias refers to.
@throws \CException if the alias is invalid.
Imports the a class or directory . The path alias is automatically prepended if applicable .