/**
* Fetches a ProjectGroup object from the database
*
- * @param array whether or not the db result handle is passed in
- * @param bool $data
- * @return object the ProjectGroup object
+ * @param array $group_project_id whether or not the db result handle is passed in
+ * @param bool $data
+ * @return object the ProjectGroup object
*/
function &projectgroup_get_object($group_project_id, $data = false) {
global $PROJECTGROUP_OBJ;
/**
* create - create a new ProjectGroup in the database.
*
- * @param string The project name.
- * @param string The project description.
- * @param string The email address to send new notifications to.
- * @return boolean success.
+ * @param string $project_name The project name.
+ * @param string $description The project description. * @param string The email address to send new notifications to.
+ * @param string $send_all_posts_to The email address to send new notifications to.
+ * @return bool success.
*/
function create($project_name,$description,$send_all_posts_to='') {
if (strlen($project_name) < 3) {
/**
* fetchData - re-fetch the data for this ProjectGroup from the database.
*
- * @param int The project group ID.
- * @return boolean success.
+ * @param int $group_project_id The project group ID.
+ * @return bool success.
*/
function fetchData($group_project_id) {
$res = db_query_params ('SELECT * FROM project_group_list_vw WHERE group_project_id=$1 AND group_id=$2',
array ($group_project_id,
$this->Group->getID())) ;
if (!$res || db_numrows($res) < 1) {
- $this->setError('ProjectGroup:: Invalid group_project_id');
+ $this->setError(_('Invalid group_project_id'));
return false;
}
$this->data_array = db_fetch_array($res);
$this->getID()));
if (!$res || db_affected_rows($res) < 1) {
- $this->setError('Error On Update: '.db_error());
+ $this->setError(sprintf(_('Error On Update: %s'), db_error()));
return false;
}
return true;
/**
* delete - delete this subproject and all its related data.
*
- * @param bool I'm Sure.
- * @param bool I'm REALLY sure.
+ * @param bool $sure I'm Sure.
+ * @param bool $really_sure I'm REALLY sure.
* @return bool true/false;
*/
function delete($sure, $really_sure) {