<?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);
<?php Layout::extend('layouts/master'); Layout::input($title, 'string'); Layout::input($body, 'Block'); $navigation = Part::block('parts/navigation');
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)); } }
<?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);
<?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);
<?php Layout::extend('layouts/master'); Layout::input($body, 'Block'); Layout::input($title, 'string'); $title .= ' > Home > '; $navigation = Part::block('layouts/navigation', '');
<?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');
<?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);
<?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);
?> </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>