iPédiatre
 Tout Classes Fichiers Fonctions Variables
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);