Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU General Public |
|
18 |
// | You should have received a copy of the GNU General Public |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// CVS : $Id: ecouteArbreFichier.php,v 1.1.2.1 2007-05-11 13:58:14 alexandre_tb Exp $
|
22 |
// CVS : $Id: ecouteArbreFichier.php,v 1.1.2.2 2007-05-24 07:56:15 alexandre_tb Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Application projet
|
24 |
* Application projet
|
25 |
*
|
25 |
*
|
26 |
* Service d ecoute de l arbre du porte document, renvoie les donnees du repertoire demande
|
26 |
* Service d ecoute de l arbre du porte document, renvoie les donnees du repertoire demande
|
27 |
*
|
27 |
*
|
Line 29... |
Line 29... |
29 |
//Auteur original :
|
29 |
//Auteur original :
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
31 |
//Autres auteurs :
|
31 |
//Autres auteurs :
|
32 |
*@author Aucun
|
32 |
*@author Aucun
|
33 |
*@copyright Tela-Botanica 2000-2005
|
33 |
*@copyright Tela-Botanica 2000-2005
|
34 |
*@version $Revision: 1.1.2.1 $
|
34 |
*@version $Revision: 1.1.2.2 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 130... |
Line 130... |
130 |
'childIconSrc' => $document->getCheminIcone(),
|
130 |
'childIconSrc' => $document->getCheminIcone(),
|
131 |
'expandIcon' => PROJET_CHEMIN_ICONES.'folder-expanded.gif',
|
131 |
'expandIcon' => PROJET_CHEMIN_ICONES.'folder-expanded.gif',
|
132 |
'afterLabel' => ' '.$document->getTailleFormatee(),
|
132 |
'afterLabel' => ' '.$document->getTailleFormatee(),
|
133 |
);
|
133 |
);
|
134 |
// On regarde si l utilisateur a les droits pour deplacer
|
134 |
// On regarde si l utilisateur a les droits pour deplacer
|
- |
|
135 |
/*
|
135 |
if ($droits <= PROJET_DROIT_COORDINATEUR ||
|
136 |
if ($droits <= PROJET_DROIT_COORDINATEUR ||
|
136 |
$GLOBALS['projet_auth']->getAuthData(PROJET_CHAMPS_ID) == $document->_id_proprietaire) {
|
137 |
$GLOBALS['projet_auth']->getAuthData(PROJET_CHAMPS_ID) == $document->_id_proprietaire) {
|
137 |
$actions = 'MOVE,REMOVE,EDIT' ;
|
138 |
$actions = 'MOVE,REMOVE,EDIT' ;
|
138 |
if ($document->isRepertoire()) $actions .= ',ADDCHILD';
|
139 |
if ($document->isRepertoire()) $actions .= ',ADDCHILD';
|
139 |
$node['actions'] = $actions;
|
140 |
$node['actions'] = $actions;
|
140 |
}
|
141 |
}
|
141 |
else {
|
142 |
else {
|
142 |
$node['actions'] = '';
|
143 |
$node['actions'] = '';
|
Line 143... |
Line 144... |
143 |
|
144 |
|
144 |
}
|
145 |
}*/
|
145 |
$nodeArray[$i] = $node;
|
146 |
$nodeArray[$i] = $node;
|
146 |
$i++;
|
147 |
$i++;
|
147 |
unset ($document);
|
148 |
unset ($document);
|
148 |
}
|
149 |
}
|