iPédiatre
 Tout Classes Fichiers Fonctions Variables
ipediatrehandler.php
Aller à la documentation de ce fichier.
1 <?php
10 {
16  public static $generatedPassword = '';
17 
21  public function fetchInput(
22  $http,
23  &$module,
24  &$class,
25  $object,
26  &$version,
27  $contentObjectAttributes,
28  $editVersion,
29  $editLanguage,
30  $fromLanguage
31  ) {
32  }
33 
37  public static function storeActionList()
38  {
39  return array();
40  }
41 
42 
46  public function publish($contentObjectID, $contentObjectVersion)
47  {
48 return;
49  iPSort::publish($contentObjectID);return;
50 eZDebug::writeError("yahahaaa");
51 $object = eZContentObject::fetch($contentObjectID);
52 $object->mainNode()->setAttribute('priority', 111);
53 return ;
54 echo "ya";
55 exit();
56  $classIdentifier = eZContentObject::fetch($contentObjectID)
57  ->contentClassIdentifier();
58 
59  switch($classIdentifier) {
60 
61  case 'article':
62  $handler = new iPArticleEditHandler();
63  break;
64 
65  case 'user':
66  $handler = new iPUserEditHandler();
67  break;
68  }
69 
70  if ($handler) {
71 
72  $handler->publish($contentObjectID, $contentObjectVersion);
73  }
74  }
75 }