当前位置: 首页>>代码示例>>PHP>>正文


PHP Part::block方法代码示例

本文整理汇总了PHP中Part::block方法的典型用法代码示例。如果您正苦于以下问题:PHP Part::block方法的具体用法?PHP Part::block怎么用?PHP Part::block使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Part的用法示例。


在下文中一共展示了Part::block方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: HtmlAttributes

<?php

Part::input($control, 'Control');
Part::input($name, 'string');
Part::input($value, 'string', '');
Part::input($label, 'string', '');
Part::input($attrs, 'HtmlAttributes', new HtmlAttributes());
Part::input($classes, 'HtmlClasses', new HtmlClasses('control-submit'));
$controlBlock = Part::block('html/input', 'submit', $control->getId(), $control->getFormName(), $value, $attrs, $classes);
Part::draw($control->getSkin(), $controlBlock, $label);
开发者ID:amitshukla30,项目名称:recess,代码行数:10,代码来源:submit.part.php

示例2:

<?php

Layout::extend('layouts/master');
Layout::input($title, 'string');
Layout::input($body, 'Block');
$navigation = Part::block('parts/navigation');
开发者ID:ratz,项目名称:icon-harvester,代码行数:6,代码来源:theme.layout.php

示例3: testInputTypeFail

 function testInputTypeFail()
 {
     try {
         Part::block($this->optional, 1)->draw();
         $this->fail('Should throw InputTypeCheckException');
     } catch (InputTypeCheckException $e) {
         $this->assertTrue(true);
     } catch (Exception $e) {
         print $e->getMessage();
         $this->fail('Should throw InputTypeCheckException, Got: ' . get_class($e));
     }
 }
开发者ID:amitshukla30,项目名称:recess,代码行数:12,代码来源:PartBlockTest.php

示例4: array

<?php

Part::input($control, 'Control');
Part::input($name, 'string');
Part::input($value, 'array', array());
Part::input($label, 'string', '');
Part::input($attrs, 'HtmlAttributes', new HtmlAttributes());
Part::input($classes, 'HtmlClasses', new HtmlClasses('control-checkbox-array'));
Part::input($choices, 'array');
$controlBlock = Part::block('html/checkbox-array', $control->getId(), $control->getFormName(), $value, $attrs, $classes, $choices);
Part::draw($control->getSkin(), $controlBlock, $label);
开发者ID:amitshukla30,项目名称:recess,代码行数:11,代码来源:checkbox-array.part.php

示例5: HtmlAttributes

<?php

Part::input($control, 'Control');
Part::input($name, 'string');
Part::input($value, 'string', '');
Part::input($label, 'string', '');
Part::input($attrs, 'HtmlAttributes', new HtmlAttributes());
Part::input($classes, 'HtmlClasses', new HtmlClasses('control-select'));
Part::input($choices, 'array');
$controlBlock = Part::block('html/select', $control->getId(), $control->getFormName(), $value, $attrs, $classes, $choices);
Part::draw($control->getSkin(), $controlBlock, $label);
开发者ID:amitshukla30,项目名称:recess,代码行数:11,代码来源:select.part.php

示例6:

<?php

Layout::extend('layouts/master');
Layout::input($body, 'Block');
Layout::input($title, 'string');
$title .= ' > Home > ';
$navigation = Part::block('layouts/navigation', '');
开发者ID:amitshukla30,项目名称:recess,代码行数:7,代码来源:home.layout.php

示例7: HtmlBlock

<?php

Layout::extend('layouts/master');
Layout::input($title, 'string');
Layout::input($body, 'Block');
Layout::input($scripts, 'Block', new HtmlBlock());
$title .= ' > Database > ';
$navigation = Part::block('layouts/navigation', 'Database');
开发者ID:amitshukla30,项目名称:recess,代码行数:8,代码来源:database.layout.php

示例8: HtmlAttributes

<?php

Part::input($control, 'Control');
Part::input($name, 'string');
Part::input($value, 'string', '');
Part::input($label, 'string', '');
Part::input($attrs, 'HtmlAttributes', new HtmlAttributes());
Part::input($classes, 'HtmlClasses', new HtmlClasses('control-textarea'));
$controlBlock = Part::block('html/textarea', $control->getId(), $control->getFormName(), $value, $attrs, $classes);
Part::draw($control->getSkin(), $controlBlock, $label);
开发者ID:amitshukla30,项目名称:recess,代码行数:10,代码来源:textarea.part.php

示例9: HtmlAttributes

<?php

Part::input($control, 'Control');
Part::input($name, 'string');
Part::input($value, 'string', '');
Part::input($label, 'string', '');
Part::input($attrs, 'HtmlAttributes', new HtmlAttributes());
Part::input($classes, 'HtmlClasses', new HtmlClasses('control-text'));
$controlBlock = Part::block('html/input', 'password', $control->getId(), $control->getFormName(), '', $attrs, $classes);
Part::draw($control->getSkin(), $controlBlock, $label);
开发者ID:amitshukla30,项目名称:recess,代码行数:10,代码来源:password.part.php

示例10:

?>
</strong></h1>
<h2>Source: <?php 
echo $sourceName;
?>
</h2>
<h2>Columns:</h2>
<table>
	<thead>
		<tr>
			<td>Primary</td>
			<td>Column Name</td>
			<td>Type</td>
			<td>Nullable</td>
			<td>Default Value</td>
		</tr>
	</thead>
	<tbody>
		<?php 
Part::draw('each-toggle', $columns, Part::block('database/row', ''), Part::block('database/row', 'light'));
?>
	</tbody>
</table>
<hr />
<h3><a href="<?php 
echo $controller->urlTo('emptyTable', $sourceName, $table);
?>
">Empty Table</a> - <a href="<?php 
echo $controller->urlTo('dropTable', $sourceName, $table);
?>
">Drop Table</a></h3>
开发者ID:amitshukla30,项目名称:recess,代码行数:31,代码来源:showTable.html.php


注:本文中的Part::block方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。