iPédiatre
Page principale
Classes
Fichiers
Liste des fichiers
Membres de fichier
Tout
Classes
Fichiers
Fonctions
Variables
html
extension
ipediatre
bin
php
users.php
Aller à la documentation de ce fichier.
1
<?php
2
$contentObject
= eZContentObject::fetch(4);
3
4
$attributeList
[
'alias'
] =
'u'
;
5
6
$ok
= eZContentFunctions::updateAndPublishObject(
$contentObject
, array(
'attributes'
=>
$attributeList
));
7
8
if
(
$ok
) {
9
echo
"ok"
;
10
}
else
{
11
echo
"ko"
;
12
}
13
14
15
$pass
= md5(
"daniel\ndaniel"
);
16
17
$params
[
'creator_id'
] = 14;
18
$params
[
'class_identifier'
] =
'user'
;
19
$params
[
'parent_node_id'
] = 13;
20
$params
[
'attributes'
] = array(
'first_name'
=>
'Daniel'
,
'last_name'
=>
'Savouyaud'
,
'user_account'
=>
"daniel|daniel@yopmail.com|{$pass}|md5_user|1"
);
21
22
23
eZContentFunctions::createAndPublishObject(
$params
);
Généré le Mercredi Mars 12 2014 19:06:36 pour iPédiatre par
1.8.3.1