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


PHP People::tag_add方法代码示例

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


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

示例1: COUNT

    }
    if (!is_null($adresse['building'])) {
        $building = Maps::buildingSearch($adresse['building'], $address['street']);
        if (count($building)) {
            $address['building'] = $building[0]['id'];
        } else {
            $building = Maps::buildingNew($adresse['building'], $address['street']);
            $address['building'] = $building;
        }
    } else {
        $address['building'] = null;
    }
    // On lance la création de l'adresse
    Maps::addressNew($person->get('id'), $address['ville'], $address['zip'], $address['street'], $address['building'], 'reel');
    $person->contact_details_add($contact['MAIL']);
    $person->tag_add('Sénateur PS');
    $person->tag_add($contact['REGION']);
    $query = $link->prepare('DELETE FROM `TABLE 30` WHERE `id` = :id');
    $query->bindValue(':id', $contact['id'], PDO::PARAM_INT);
    $query->execute();
}
$query = $link->query('SELECT COUNT(*) FROM `TABLE 30`');
$nb = $query->fetch(PDO::FETCH_NUM);
if ($nb[0]) {
    ?>
<script>
    var url = 'transfert.php';
    document.location.href = url;
</script>
<?php 
} else {
开发者ID:leqg,项目名称:leqg,代码行数:31,代码来源:transfert.php

示例2: People

<?php

/**
 * Création d'un nouveau tag associé au contact
 *
 * PHP version 5
 *
 * @category Ajax
 * @package  LeQG
 * @author   Damien Senger <hi@hiwelo.co>
 * @license  https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License 3.0
 * @link     http://leqg.info
 */
$data = new People($_POST['contact']);
if (!empty($_POST['tag'])) {
    $data->tag_add($_POST['tag']);
}
开发者ID:leqg,项目名称:leqg,代码行数:17,代码来源:contact-tag-nouveau.ajax.php

示例3: COUNT

    if (!empty($contact['Téléphone2domicile'])) {
        $person->contact_details_add($contact['Téléphone2domicile'], 'fixe');
    }
    if (!empty($contact['Télmobile'])) {
        $person->contact_details_add($contact['Télmobile'], 'mobile');
    }
    if (!empty($contact['Adressedemessagerie'])) {
        $person->contact_details_add($contact['Adressedemessagerie'], 'email');
    }
    if (!empty($contact['Adressedemessagerie2'])) {
        $person->contact_details_add($contact['Adressedemessagerie2'], 'email');
    }
    if (!empty($contact['Adressedemessagerie3'])) {
        $person->contact_details_add($contact['Adressedemessagerie3'], 'email');
    }
    $person->tag_add('contacts');
    $query = $link->prepare('DELETE FROM `TABLE 47` WHERE `id` = :id');
    $query->bindValue(':id', $contact['id'], PDO::PARAM_INT);
    $query->execute();
}
$query = $link->query('SELECT COUNT(*) FROM `TABLE 47`');
$nb = $query->fetch(PDO::FETCH_NUM);
if ($nb[0]) {
    ?>
<script>
    var url = 'importation.php';
    document.location.href = url;
</script>
<?php 
} else {
    echo 'Fini!';
开发者ID:leqg,项目名称:leqg,代码行数:31,代码来源:importation.php

示例4: People

<?php

require_once 'includes.php';
$link = Configuration::read('db.link');
$person = People::create();
$person = new People($person);
$person->tag_add('newsletter');
$person->contact_details_add($_POST['email']);
header('Location: http://cordery.leqg.info/mail-info.php?email=' . md5($_POST['email']) . '&action=inscription');
开发者ID:leqg,项目名称:leqg,代码行数:9,代码来源:mail-ajout.php


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