本文整理汇总了PHP中Helper::sanitize方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper::sanitize方法的具体用法?PHP Helper::sanitize怎么用?PHP Helper::sanitize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Helper
的用法示例。
在下文中一共展示了Helper::sanitize方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: parse
public function parse($line) {
$this->statement->set_aip($line);
$line = Helper::sanitize($line);
$starts_block = Helper::starts_block($line);
$ends_block = Helper::ends_block($line);
if($starts_block) $this->statement->increase_block_level();
if($ends_block) $this->statement->decrease_block_level();
$line = Aipenizer::i()->run($line, $this->statement);
if(!$starts_block and !$ends_block)
$line = Helper::semicolonize($line);
$this->statement->interrupted(Helper::interrupts($line));
if($this->statement->interrupted()) $line = Helper::aip_die();
$this->statement->append($line);
$statement = clone $this->statement;
if(!$this->statement->in_block())
$this->statement = new Statement;
return $statement;
}
示例2: render
/**
* Toolbar render
*
* @return string
*/
public static function render()
{
$title = self::$title;
$buttons = self::$buttons;
?>
<div class="toolbar row">
<div class="title">
<h1>
<span class="glyphicon <?php
echo $title["class"];
?>
"></span>
<?php
echo Helper::sanitize($title["title"]);
?>
<small>
<?php
echo Helper::sanitize($title["subtitle"]);
?>
</small>
</h1>
</div>
<div class="tools">
<?php
if (count($buttons)) {
?>
<?php
foreach ($buttons as $button) {
?>
<?php
echo Html::formButton("btn-" . $button['class'], $button['spanClass'], $button['title'], array("id" => $button['id'], "data-app" => $button['app'], "data-action" => $button['action'], "data-confirmation" => $button['confirmation'], "data-ajax" => $button['ajax'], "data-noAjax" => $button['noAjax'], "data-link" => $button['link'], "data-data-modal" => $button['modal']));
?>
<?php
}
?>
<?php
}
?>
</div>
</div>
<?php
}
示例3:
</label>
<div class="col-sm-8">
<input type="text" id="username" name="username" class="form-control" value="<?php
echo Helper::sanitize($user->username);
?>
">
</div>
</div>
<!-- Email -->
<div class="form-group">
<label class="col-sm-3 control-label">
Email
</label>
<div class="col-sm-8">
<input type="text" id="email" name="email" class="form-control" value="<?php
echo Helper::sanitize($user->email);
?>
">
</div>
</div>
<!-- Contraseña -->
<div class="form-group">
<label class="col-sm-3 control-label">
Contraseña
</label>
<div class="col-sm-8">
<input type="password" id="password" name="password" class="form-control">
</div>
</div>
</div>
</div>
示例4:
?>
<tr>
<td><?php
echo $entrada->id;
?>
</a></td>
<td><?php
echo Helper::sanitize($entrada->nombre);
?>
</td>
<td><?php
echo Helper::sanitize($entrada->houseNumber);
?>
</td>
<td><?php
echo Helper::sanitize($entrada->duracion);
?>
</td>
<td><?php
echo Helper::humanDate($entrada->dateInsert);
?>
</td>
<td><?php
echo Helper::humanDate($entrada->dateUpdate);
?>
</td>
<td>
<?php
echo HTML::formLink("btn-xs btn-primary", "pencil", Url::site("entradas/edit/" . $entrada->id));
?>
<?php
示例5:
?>
<tr>
<td><?php
echo $mosca->id;
?>
</a></td>
<td><?php
echo Helper::sanitize($mosca->getTipoString());
?>
</td>
<td><?php
echo Helper::sanitize($mosca->codigo);
?>
</td>
<td><?php
echo Helper::sanitize($mosca->nombre);
?>
</td>
<td><?php
echo Helper::humanDate($mosca->dateInsert);
?>
</td>
<td><?php
echo Helper::humanDate($mosca->dateUpdate);
?>
</td>
<td>
<?php
echo HTML::formLink("btn-xs btn-primary", "pencil", Url::site("moscas/edit/" . $mosca->id));
?>
<?php
示例6:
?>
<!-- Debug Modal - Session -->
<div class="modal modal-debug fade" id="debugModalSession" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Session</h4>
</div>
<div class="modal-body">
<?php
if ($_SESSION) {
?>
<?php
echo "<pre>" . Helper::sanitize(print_r($_SESSION, true)) . "</pre>";
?>
<?php
} else {
?>
<blockquote>
<p>No session data</p>
</blockquote>
<?php
}
?>
</div>
</div>
</div>
</div>
<!-- /Debug Modal - Session -->
示例7: function
</label>
<div class="col-sm-8">
<input type="text" id="nombre" name="nombre" class="form-control" value="<?php
echo Helper::sanitize($mosca->nombre);
?>
">
</div>
</div>
<!-- Duración -->
<div class="form-group" id="duracion_div">
<label class="col-sm-3 control-label">
Duración
</label>
<div class="col-sm-8">
<input type="text" id="duracion" name="duracion" class="form-control dateMask" value="<?php
echo Helper::sanitize($mosca->duracion);
?>
" placeholder="HH:MM:SS:FR">
</div>
</div>
</div>
</div>
</div>
</div>
</form>
<script>
//Date Mask
$('input.dateMask').mask("00:00:00:00");
$(document).on('change', '#tipoId', function (e) {
示例8: buildAttributes
/**
* Attribute builder
*
* @param array $options
*
* @return string
*/
protected static function buildAttributes($options = array())
{
$html = "";
//Atributes
foreach ((array) $options as $key => $value) {
$html .= " " . $key . "='" . Helper::sanitize($value) . "'";
}
return $html;
}
示例9:
</div>
<!-- Máscara -->
<div class="form-group">
<label class="col-sm-3 control-label">
Máscara
</label>
<div class="col-sm-8">
<input type="text" id="mascara" name="mascara" class="form-control" value="<?php
echo Helper::sanitize($tipo->mascara);
?>
">
</div>
</div>
<!-- Color -->
<div class="form-group">
<label class="col-sm-3 control-label">
Color
</label>
<div class="col-sm-8">
<input type="text" id="color" name="color" class="form-control color-picker" value="<?php
echo Helper::sanitize($tipo->color);
?>
">
</div>
</div>
</div>
</div>
</div>
</div>
</form>
示例10:
<h4>Error</h4>
<?php
echo Helper::sanitize($query['error']);
?>
</blockquote>
<?php
}
?>
<?php
echo SqlFormatter::format($query['query']);
?>
<?php
if ($query['trace']) {
?>
<pre><?php
echo Helper::sanitize($query['trace']);
?>
</pre>
<?php
}
?>
</div>
</div>
</div>
<?php
}
?>
</div>
<?php
} else {
?>