Class ThemeBuildCommand
CConsoleCommand represents an executable console command.
It works like CController by parsing command line options and dispatching the request to a specific action with appropriate option values.
Users call a console command via the following command format:
yiic CommandName ActionName --Option1=Value1 --Option2=Value2 ...
Child classes mainly needs to implement various action methods whose name
must be prefixed with "action". The parameters to an action method are
considered as options for that specific action. The action specified as CConsoleCommand::$defaultAction
will be invoked when a user does not specify the action name in
his command.
Options are bound to action parameters via parameter names. For example, the
following action method will allow us to run a command with yiic sitemap
--type=News
:
class SitemapCommand extends CConsoleCommand { public function actionIndex($type) { .... } }
Since version 1.1.11 the return value of action methods will be used as application exit code if it is an integer value.
- CComponent
- CConsoleCommand
- ThemeBuildCommand
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/protected/commands/ThemeBuildCommand.php
public
integer
|
|
public
|
|
public
array
|
|
public
Array
|
|
public
array
|
|
public
|
#
formatRule( string $selector, string $rule, mixed $addNoThemeRule = false )
Formats a rule array into CSS |
public
|
#
formatModuleOverridesRule( mixed $selector, mixed $rule )
Formats rules for module-specific theming. Detects module theme override rules and converts them into templated rules. Uses caching to prevent insertion of duplicate rules. |
public
string
|
|
public
|
__construct(),
afterAction(),
beforeAction(),
behaviors(),
buildFileList(),
confirm(),
copyFiles(),
ensureDirectory(),
getCommandRunner(),
getName(),
getOptionHelp(),
init(),
onAfterAction(),
onBeforeAction(),
pluralize(),
prompt(),
renderFile(),
resolveRequest(),
usageError()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
public
string
|
$inputDir | '../' |
#
Input directory of the css Root |
public
string
|
$outputFile | 'components/ThemeGenerator/templates/generatedRules.php' |
#
Output file |
public
string
|
$moduleOverridesFile | 'components/ThemeGenerator/templates/generatedModuleOverrides.php' |
$defaultAction
|
$commandRunner,
$help,
$name,
$optionHelp
|