本文整理汇总了PHP中Builder::run方法的典型用法代码示例。如果您正苦于以下问题:PHP Builder::run方法的具体用法?PHP Builder::run怎么用?PHP Builder::run使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Builder
的用法示例。
在下文中一共展示了Builder::run方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: run
protected function run()
{
parent::run();
if (!$this->dataDescription->isEmpty()) {
$this->getResult()->removeAttribute('empty');
}
}
示例2: build
/**
* Build the instance of the requested object
*/
protected function build()
{
$this->instance = $this->builder->run();
}
示例3: Exception
}
update_changelog(os::path('tools', 'svn', MCMS_RELEASE, 'changelog.txt'), null, 'rel-8.12..master');
if (!is_dir($dirName = os::path('tools', 'svn', MCMS_RELEASE, 'changelogs'))) {
if (!mkdir($dirName, 0750, true)) {
throw new Exception('could not create ' . $dirName);
}
}
foreach (os::find('lib', 'modules', '*') as $tmp) {
update_changelog(os::path($dirName, basename($tmp) . '.txt'), $tmp);
}
os::exec('git clean -fd');
printf("Creating %s\n", $zipName = 'molinos-cms-' . MCMS_VERSION . '.zip');
zip::create($zipName, array('.htaccess.dist', '*.php', 'doc', os::path('lib', 'modules', 'admin'), os::path('lib', 'modules', 'api'), os::path('lib', 'modules', 'auth'), os::path('lib', 'modules', 'authbasic'), os::path('lib', 'modules', 'base'), os::path('lib', 'modules', 'compressor'), os::path('lib', 'modules', 'core'), os::path('lib', 'modules', 'cron'), os::path('lib', 'modules', 'files'), os::path('lib', 'modules', 'indexer'), os::path('lib', 'modules', 'install'), os::path('lib', 'modules', 'markdown'), os::path('lib', 'modules', 'mimemail'), os::path('lib', 'modules', 'modman'), os::path('lib', 'modules', 'nodeapi'), os::path('lib', 'modules', 'pdo'), os::path('lib', 'modules', 'routeadmin'), os::path('lib', 'modules', 'schema'), os::path('lib', 'modules', 'xslt'), os::path('tools', '*.php'), os::path('sites', 'default')), '@~$@');
printf("Rebuilding modules.\n");
$b = new Builder(os::path('tools', 'svn', MCMS_RELEASE, 'modules.ini'));
$b->run();
foreach (os::find('tmp', 'modules', '*.zip') as $zipName) {
$name = basename($zipName);
if (preg_match('@^(.*)-(.*)\\.zip$@', $name, $m)) {
$info = "{$m[1]} v{$m[2]}";
} else {
$info = $name;
}
printf("Uploading %s\n", $zipName);
if (os::exec('googlecode_upload.py', array('-s', $info, '-p', 'molinos-cms', '-l', 'Deprecated,Type-Module,R' . MCMS_RELEASE, $zipName))) {
printf(" error\n");
}
}
printf("Sending changes to Subversion.\n");
chdir('tools/svn');
if (!os::exec('svn', array('commit', '-m', 'Automatic upload by tools/release.php'), $status)) {