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


PHP Parser::model方法代码示例

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


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

示例1: array

echo CHtml::checkBox('ci-stage-functest', false, array('value' => 'f', 'ext' => 'CI-Stage', 'style' => 'margin: 6px 2px 0px 10px; float: left;'));
echo CHtml::label(YIi::t('Job', 'CI Functest'), 'ci-stage-functest', array('style' => 'float: left'));
echo '</div>';
?>
                    </div>
                    <div class="row-fluid" style="margin-bottom: 0">
                        <?php 
echo CHtml::label(Yii::t('Job', 'Other Options'), 'ci-other-opts', array('class' => 'span2'));
echo CHtml::textField('ci-other-opts', '', array('class' => 'focus span10', 'placeholder' => Yii::t('Job', 'Other Options Tip')));
?>
                    </div>
                    <hr/>
                    <div class="row-fluid" style="margin-bottom: 0">
                        <?php 
echo CHtml::label(Yii::t('Command', 'Test Tool'), 'ci-parser', array('class' => 'span2'));
$this->widget('application.extensions.select2.ESelect2', array('name' => 'ci-parser', 'data' => Parser::model()->getParserOptions(), 'htmlOptions' => array('multiple' => 'multiple', 'placeholder' => Yii::t('Parser', 'No need parse'), 'class' => 'span10')));
?>
                    </div>
                </div>
                <!-- ci command fields end -->
            </div>
        </div>
    </div>
    <!-- command fields end -->
    <!-- case fields start -->
    <div id="test-case-fields">
        <div class="row-fluid">
            <?php 
echo CHtml::label(Yii::t('TestCase', 'Query Case'), 'query-case', array('class' => 'span2'));
//            echo CHtml::textField('query-case', '', array('class' => 'span10 focus'));
$this->Widget('application.extensions.querybuilder.QueryBuilderWidget', array('name' => 'search', 'options' => array_merge(VTestCase::model()->getQueryOpts(), array('keyClick' => 'js:function(queryStr){
开发者ID:xuzhitong89,项目名称:web1.0,代码行数:31,代码来源:jobform.php

示例2: preg_split

     $oldParserIDs = preg_split('/,/', $diffAttr->old);
     $oldParserStr = '';
     foreach ($oldParserIDs as $oldParserID) {
         $parser = Parser::model()->findByPk($oldParserID);
         if ($parser) {
             $oldParserStr .= $parser->name . ',';
         }
     }
     $oldParserStr = trim($oldParserStr, ', ');
     if ($oldParserStr) {
         $diffAttr->old = $oldParserStr;
     }
     $newParserIDs = preg_split('/,/', $diffAttr->new);
     $newParserStr = '';
     foreach ($newParserIDs as $newParserID) {
         $parser = Parser::model()->findByPk($newParserID);
         if ($parser) {
             $newParserStr .= $parser->name . ',';
         }
     }
     $newParserStr = trim($newParserStr, ', ');
     if ($newParserStr) {
         $diffAttr->new = $newParserStr;
     }
 }
 if ($diffAttr->old === NULL) {
     $diffAttr->old = '[NULL]';
 }
 if ($diffAttr->new === NULL) {
     $diffAttr->new = '[NULL]';
 }
开发者ID:xuzhitong89,项目名称:web1.0,代码行数:31,代码来源:history.php

示例3: array

    </div>
    <?php 
echo CHtml::errorSummary($command);
?>
    <div class="detail block">
        <div class="row-fluid">
            <?php 
echo CHtml::activeLabelEx($command, 'name', array('class' => 'span1'));
echo CHtml::activeTextField($command, 'name', array('class' => 'focus span11'));
?>
        </div>
        <div class="row-fluid">
            <?php 
echo CHtml::activeLabelEx($command, 'parser_id', array('class' => 'span1'));
echo '<div class="span11">';
$this->widget('application.extensions.select2.ESelect2', array('model' => $command, 'attribute' => 'parser_id', 'data' => Parser::model()->getParserOptions(), 'htmlOptions' => array('multiple' => 'multiple', 'placeholder' => Yii::t('Parser', 'No need parse'), 'class' => 'span3')));
echo '</div>';
?>
        </div>
        <div class="row-fluid">
            <?php 
echo CHtml::activeLabelEx($command, 'command', array('class' => 'span1'));
echo '<div class="span11">';
echo CHtml::activeTextArea($command, 'command');
echo '</div>';
?>
        </div>
        <div class="row-fluid">
            <?php 
echo CHtml::activeLabelEx($command, 'desc_info', array('class' => 'span1'));
echo CHtml::activeTextArea($command, 'desc_info', array('class' => 'span11 focus', 'style' => 'height: 6em'));
开发者ID:xuzhitong89,项目名称:web1.0,代码行数:31,代码来源:_form.php


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