* Copyright 2002-2003, Tim Perdue/GForge, LLC
* Copyright 2009, Roland Mas
* Copyright 2010, Franck Villaume - Capgemini
+ * Copyright 2012, Franck Villaume - TrivialDev
+ * Copyright (C) 2012 Alain Peyrat - Alcatel-Lucent
* http://fusionforge.org
*
* This file is part of FusionForge. FusionForge is free software;
*
* @return boolean success.
*/
- function DocumentGroupFactory(&$Group) {
+ function __construct(&$Group) {
$this->Error();
if (!$Group || !is_object($Group)) {
return false;
}
$this->Group =& $Group;
-
- return true;
}
/**
$result = db_query_params('SELECT * FROM doc_groups WHERE group_id=$1 AND stateid=$2 ORDER BY groupname ASC',
array($this->Group->getID(), $stateid));
- $rows = db_numrows($result);
if (!$result) {
$this->setError(_('No Documents Folder Found').' '.db_error());
for ($i=0; $i < $count; $i++) {
$this->nested_groups["".$this->flat_groups[$i]->getParentID()][] =& $this->flat_groups[$i];
}
-
return $this->nested_groups;
}
// mode: php
// c-file-style: "bsd"
// End:
-
-?>