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


PHP Converter::toText方法代码示例

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


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

示例1: array

<label class="grid-group">
  <span class="grid span-1 form-label"><?php 
echo $speak->placeholder;
?>
</span>
  <span class="grid span-5">
  <?php 
echo Form::text('placeholder', Converter::toText(Request::get('placeholder', Guardian::wayback('placeholder', $page->placeholder))), null, array('class' => 'input-block'));
?>
  </span>
</label>
开发者ID:yiannisSt,项目名称:mecha-cms,代码行数:11,代码来源:placeholder.php

示例2: function

 * ---------------------
 */
Route::accept(array($config->manager->slug . '/menu/ignite', $config->manager->slug . '/menu/repair/key:(:any)'), function ($key = false) use($config, $speak) {
    if (!Guardian::happy(1)) {
        Shield::abort();
    }
    $menus = Get::state_menu(null, array(), false);
    if (!$key) {
        $menu_raw = "";
        $title = Config::speak('manager.title_new_', $speak->menu) . $config->title_separator . $config->manager->title;
    } else {
        if (!isset($menus[$key])) {
            Shield::abort();
            // Menu not found!
        }
        $menu_raw = Converter::toText($menus[$key]);
        $title = $speak->editing . ': ' . $speak->menu . $config->title_separator . $config->manager->title;
    }
    Config::set(array('page_title' => $title, 'cargo' => 'repair.menu.php'));
    $G = array('data' => array('content' => $menu_raw));
    if ($request = Request::post()) {
        $request = Filter::apply('request:__menu', $request, $key);
        Guardian::checkToken($request['token']);
        // Check for invalid input
        if (preg_match('#(^|\\n)(\\t| {1,3})(?:[^ ])#', $request['content'])) {
            Notify::error($speak->notify_invalid_indent_character);
            Guardian::memorize($request);
        }
        $k = Text::parse(str_replace(array('Menu::', '()'), "", $request['key']), '->array_key');
        if (!$key) {
            if (isset($menus[$k])) {
开发者ID:AdeHaze,项目名称:mecha-cms,代码行数:31,代码来源:route.menu.php

示例3: array

                                $html .= '</span>';
                                $html .= '</label>';
                            } else {
                                if ($type === 'e') {
                                    $html .= '<label class="grid-group grid-group-editor">';
                                    $html .= '<span class="grid span-2 form-label">' . $title . '</span>';
                                    $html .= '<span class="grid span-4">';
                                    $html .= Form::textarea('fields[' . $key . '][value]', Converter::str(isset($field[$key]) ? $field[$key] : $value['value']), Converter::toText(isset($value['placeholder']) ? $value['placeholder'] : $value['value']), array('class' => array('textarea-block', 'code')));
                                    $html .= '</span>';
                                    $html .= '</label>';
                                } else {
                                    // if($type === 's') {
                                    $html .= '<label class="grid-group grid-group-summary">';
                                    $html .= '<span class="grid span-2 form-label">' . $title . '</span>';
                                    $html .= '<span class="grid span-4">';
                                    $html .= Form::textarea('fields[' . $key . '][value]', Converter::str(isset($field[$key]) ? $field[$key] : $value['value']), Converter::toText(isset($value['placeholder']) ? $value['placeholder'] : $value['value']), array('class' => 'textarea-block'));
                                    $html .= '</span>';
                                    $html .= '</label>';
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    echo !empty($html) ? $html : Cell::p(Config::speak('notify_empty', strtolower($speak->fields)));
} else {
    echo Cell::p(Config::speak('notify_empty', strtolower($speak->fields)));
}
Weapon::fire('unit_composer_3_after', array($segment, $fields));
开发者ID:razordaze,项目名称:mecha-cms,代码行数:31,代码来源:unit.composer.3.php

示例4: array

    ?>
</span>
        </td>
        <td>
        <?php 
    echo Form::text('name[]', $tag->name, null, array('class' => 'input-block', 'readonly' => Guardian::get('status') !== 'pilot' ? true : null));
    ?>
        </td>
        <td>
        <?php 
    echo Form::text('slug[]', $tag->slug, null, array('class' => 'input-block', 'readonly' => Guardian::get('status') !== 'pilot' ? true : null));
    ?>
        </td>
        <td>
        <?php 
    echo Form::text('description[]', Converter::toText($tag->description), null, array('class' => 'input-block', 'readonly' => Guardian::get('status') !== 'pilot' ? true : null));
    ?>
        </td>
      </tr>
      <?php 
}
?>
      <tr>
        <td class="text-right">
        <?php 
echo Form::text('id[]', max($id) + 1, null, array('class' => array('input-block', 'no-appearance'), 'autocomplete' => 'off'));
?>
        </td>
        <td>
        <?php 
echo Form::text('name[]', Guardian::wayback('name.' . (max($id) + 1)), null, array('class' => 'input-block'));
开发者ID:razordaze,项目名称:mecha-cms,代码行数:31,代码来源:cargo.tag.php

示例5: foreach

if ($files) {
    ?>
      <?php 
    foreach ($files as $key => $value) {
        $count++;
        ?>
      <tr draggable="true">
        <td class="handle"></td>
        <td class="align-middle">
        <?php 
        echo Form::text('key[]', $key, '{{' . strtolower($speak->key) . '}}', array('class' => 'input-block'));
        ?>
        </td>
        <td class="align-middle">
        <?php 
        echo Form::text('value[]', Converter::toText($value), null, array('class' => 'input-block'));
        ?>
        </td>
      </tr>
      <?php 
    }
    ?>
      <?php 
}
?>
      <tr draggable="true">
        <td class="handle"></td>
        <td class="align-middle">
        <?php 
echo Form::text('key[]', "", '{{' . strtolower($speak->key) . '}}', array('class' => 'input-block'));
?>
开发者ID:yiannisSt,项目名称:mecha-cms,代码行数:31,代码来源:cargo.shortcode.php

示例6: strtolower

<label class="grid-group">
  <span class="grid span-1 form-label"><?php 
echo $speak->description;
?>
</span>
  <span class="grid span-5">
  <?php 
echo Form::text('description', Converter::toText(Request::get('description', Guardian::wayback('description', $page->description))), Config::speak('manager.placeholder_description_', strtolower($speak->{$segment})), array('class' => 'input-block'));
?>
  </span>
</label>
开发者ID:yiannisSt,项目名称:mecha-cms,代码行数:11,代码来源:description.text.php

示例7: array

?>
</span>
    <span class="grid span-5">
    <?php 
echo Form::textarea('value', Converter::str(Guardian::wayback('value', $file->value)), null, array('class' => array('textarea-block', 'MTE')));
?>
    </span>
  </label>
  <label class="grid-group">
    <span class="grid span-1 form-label"><?php 
echo $speak->description;
?>
</span>
    <span class="grid span-5">
    <?php 
echo Form::text('description', Converter::toText(Guardian::wayback('description', $file->description)), Config::speak('manager.placeholder_description_', strtolower($speak->field)), array('class' => 'input-block'));
?>
    </span>
  </label>
  <div class="grid-group">
    <span class="grid span-1"></span>
    <span class="grid span-5">
      <?php 
if ($the_key) {
    ?>
      <?php 
    echo Jot::button('action', $speak->update);
    ?>
      <?php 
    echo Jot::btn('destruct', $speak->delete, $config->manager->slug . '/field/kill/key:' . $the_key);
    ?>
开发者ID:razordaze,项目名称:mecha-cms,代码行数:31,代码来源:repair.field.php


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