本文整理汇总了PHP中setId函数的典型用法代码示例。如果您正苦于以下问题:PHP setId函数的具体用法?PHP setId怎么用?PHP setId使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setId函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: construct
/**
* Создаёт заказ по данным из mysql
*
* @param array $data данные из mysql
*
* @return &array объект заказа
*/
function &unserializeFromMysql(array $data)
{
$Order =& construct();
setId($Order, $data['id']);
setPrice($Order, $data['price']);
setText($Order, $data['text']);
return $Order;
}
开发者ID:amberovsky,项目名称:avaritia,代码行数:15,代码来源:Order.php
示例2: extract
<?php
extract(shortcode_atts(array('class' => '', 'id' => '', 'css_animation' => '', 'css_animation_delay' => '', 'color_scheme' => ''), $atts));
$animated = $css_animation ? 'animate' : '';
$css_animation_delay = $css_animation ? ' data-delay="' . $css_animation_delay . '"' : '';
$class = setClass(array('md-tabs md-tours', $animated, $css_animation, $class, $color_scheme));
$id = setId($id);
$output = '<div' . $class . $id . $css_animation_delay . '>';
$output .= '<ul class="nav nav-tabs">';
$GLOBALS['tabs'] = 'nav';
$output .= wpb_js_remove_wpautop($content);
$output .= '</ul>';
$GLOBALS['tabs'] = 'content';
$output .= '<div class="tab-content">';
$output .= wpb_js_remove_wpautop($content, true);
$output .= '</div>';
$output .= '</div>';
echo $output;
开发者ID:Beutiste,项目名称:wordpress,代码行数:18,代码来源:md_tours.php
示例3: useId
function useId($freeId)
{
$lastId = sql_value("SELECT MAX(`id`) FROM `sys_trans`", 0);
if ($lastId + 1 == $freeId) {
return;
}
setId($lastId, $freeId);
}
开发者ID:PaulinaKowalczuk,项目名称:oc-server3,代码行数:8,代码来源:translate.php
示例4: __construct
function __construct($idT, $nombreT, $precioT)
{
setId($idT);
setNombre($nombreT);
setPrecio($precioT);
}
开发者ID:raulnavascues,项目名称:Curso-Konectia,代码行数:6,代码来源:Producto.php
示例5: construct
/**
* Создаёт исполнителя по данным из mysql
*
* @param array $data данные из mysql
*
* @return &array объект исполнителя
*/
function &unserializeFromMysql(array $data)
{
$Executor =& construct();
setId($Executor, $data['id']);
setFio($Executor, $data['fio']);
setSalary($Executor, $data['salary']);
setLogin($Executor, $data['login']);
return $Executor;
}
开发者ID:amberovsky,项目名称:avaritia,代码行数:16,代码来源:Executor.php
示例6: explode
$output .= '</div>';
}
if ($bgtype == 'bg-slider') {
$output .= '<div class="section-slider">';
$images = explode(',', $slider_images);
$output .= '<div class="flexslider" data-slideshow="true" data-disable-keyboard="true" data-effect="fade" data-navigation="false" data-pagination="false"><ul class="slides">';
foreach ($images as $image) {
$image_big = wp_get_attachment_image_src($image, 'full');
$alt = get_post_meta($image, '_wp_attachment_image_alt', true) ? get_post_meta($image, '_wp_attachment_image_alt', true) : '';
$output .= '<li><img src="' . $image_big[0] . '" alt="' . esc_attr($alt) . '" /></li>';
}
$output .= '</ul></div>';
$output .= '</div>';
}
if ($bgtype == 'bg-map') {
$map_id = setId('map_' . uniqid());
$output .= '<div class="section-map">';
$output .= '<div class="md-map" id="' . $map_id . '"';
$output .= ' data-map-type="' . $map_type . '"';
if ($map_latitude) {
$output .= ' data-map-lat="' . $map_latitude . '"';
}
if ($map_longitude) {
$output .= ' data-map-lon="' . $map_longitude . '"';
}
if ($map_zoom) {
$output .= ' data-map-zoom="' . $map_zoom . '"';
}
if ($map_pin) {
$map_pin = wp_get_attachment_image_src($map_pin, 'full');
$output .= ' data-map-pin="' . $map_pin[0] . '"';
开发者ID:Beutiste,项目名称:wordpress,代码行数:31,代码来源:vc_row.php
示例7: extract
<?php
extract(shortcode_atts(array('class' => '', 'id' => '', 'css_animation' => '', 'css_animation_delay' => '', 'map_type' => '', 'map_latitude' => '', 'map_longitude' => '', 'map_zoom' => '', 'map_pin' => '', 'map_title' => '', 'map_info' => '', 'map_height' => '', 'map_scroll' => '', 'map_drag' => '', 'map_zoom_control' => '', 'map_disable_doubleclick' => '', 'map_streetview' => ''), $atts));
$animated = $css_animation ? 'animate' : '';
$css_animation_delay = $css_animation ? ' data-delay="' . $css_animation_delay . '"' : '';
$class = setClass(array('md-map', $animated, $css_animation, $class));
$id = setId($id, 'map_' . uniqid());
$map_height = ' style="height:' . $map_height . 'px"';
$map_pin = $map_pin ? wp_get_attachment_image_src($map_pin, 'full') : '';
$output = '<div' . $class . $id . $css_animation_delay . $map_height;
$output .= ' data-map-type="' . $map_type . '"';
if ($map_latitude) {
$output .= ' data-map-lat="' . $map_latitude . '"';
}
if ($map_longitude) {
$output .= ' data-map-lon="' . $map_longitude . '"';
}
if ($map_zoom) {
$output .= ' data-map-zoom="' . $map_zoom . '"';
}
if ($map_pin) {
$output .= ' data-map-pin="' . $map_pin[0] . '"';
}
if ($map_title) {
$output .= ' data-map-title="' . $map_title . '"';
}
if ($map_info) {
$output .= ' data-map-info="' . $map_info . '"';
}
$output .= ' data-map-scroll="' . $map_scroll . '"';
$output .= ' data-map-drag="' . $map_drag . '"';
开发者ID:Beutiste,项目名称:wordpress,代码行数:31,代码来源:md_gmap.php
注:本文中的setId函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论