當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。