亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? projecttask.class

?? GForge 3.0 協作開發平臺 支持CVS, mailing lists, bug tracking, message boards/forums, task management, perman
?? CLASS
?? 第 1 頁 / 共 2 頁
字號:
<?php/** * GForge Project Management Facility * * Copyright 2002 GForge, LLC * http://gforge.org/ * * @version   $Id: ProjectTask.class,v 1.15 2003/02/12 17:23:47 bigdisk Exp $ * * This file is part of GForge. * * GForge is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * GForge is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GForge; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  US *//*	Project/Task Manager	By Tim Perdue, Sourceforge, 11/99	Heavy rewrite by Tim Perdue April 2000	Total rewrite in OO and GForge coding guidelines 12/2002 by Tim Perdue*/require_once('common/include/Error.class');require_once('common/pm/Validator.class');class ProjectTask extends Error {	/**	 * Associative array of data from db.	 *	 * @var	 array   $data_array.	 */	var $data_array;	/**	 * The ProjectGroup object.	 *	 * @var	 object  $ProjectGroup.	 */	var $ProjectGroup;	var $dependon;	var $assignedto;	var $relatedartifacts;	/**	 *  Constructor.	 *	 *	@param	object	The ProjectGroup object to which this ProjectTask is associated.	 *  @param  int	 The project_task_id.	 *  @param  array   The associative array of data.	 *	@return	boolean success.	 */	function ProjectTask(&$ProjectGroup, $project_task_id=false, $arr=false) {		$this->Error();		if (!$ProjectGroup || !is_object($ProjectGroup)) {			$this->setError('ProjectTask:: No Valid ProjectGroup Object');			return false;		}		if ($ProjectGroup->isError()) {			$this->setError('ProjectTask:: '.$ProjectGroup->getErrorMessage());			return false;		}		$this->ProjectGroup =& $ProjectGroup;		if ($project_task_id) {			if (!$arr || !is_array($arr)) {				if (!$this->fetchData($project_task_id)) {					return false;				}			} else {				$this->data_array =& $arr;				//				//	Verify this message truly belongs to this ProjectGroup				//				if ($this->data_array['group_project_id'] != $this->ProjectGroup->getID()) {					$this->setError('Group_project_id in db result does not match ProjectGroup Object');					return false;				}			}		}		return true;	}	/**	 *	create - create a new ProjectTask in the database.	 *	 *	@param	string	The summary of this task.	 *	@param	string	The detailed description of this task.	 *	@param	int	The Priority of this task.	 *	@param	int	The Hours estimated to complete this task.	 *	@param	int	The (unix) start date of this task.	 *	@param	int	The (unix) end date of this task.	 *	@param	int	The category_id of this task.	 *	@param	int	The percentage of completion in integer format of this task.	 *	@param	array	An array of user_id's that are assigned this task.	 *	@param	array	An array of project_task_id's that this task depends on.	 *	@return	boolean success.	 */	function create($summary,$details,$priority,$hours,$start_date,$end_date,			$category_id,$percent_complete,&$assigned_arr,&$depend_arr) {		$v = new Validator();		$v->check($summary, "summary");		$v->check($details, "details");		$v->check($priority, "priority");		$v->check($hours, "hours");		$v->check($start_date, "start date");		$v->check($end_date, "end date");		$v->check($category_id, "category");		if (!$v->isClean()) {			$this->setError($v->formErrorMsg("Must include "));			return false; 		}		$perm =& $this->ProjectGroup->Group->getPermission( session_get_user() );		if (!$perm || !is_object($perm) || !$perm->isPMAdmin()) {			$this->setPermissionDeniedError();			return false;		}		db_begin();		$res=db_query("SELECT nextval('project_task_pk_seq') AS id");		if (!$project_task_id=db_result($res,0,'id')) {			$this->setError('Could Not Get Next ID');			db_rollback();			return false;		} else {			$this->data_array['project_task_id']=$project_task_id;			if (!$this->setDependentOn($depend_arr)) {				db_rollback();				return false;			} elseif (!$this->setAssignedTo($assigned_arr)) {				db_rollback();				return false;			} else {				$sql="INSERT INTO project_task (project_task_id,group_project_id,created_by,summary,					details,start_date,end_date,status_id,category_id,priority,percent_complete,hours) 					VALUES ('$project_task_id','". $this->ProjectGroup->getID() ."', '".user_getid()."', '". htmlspecialchars($summary) ."',					'". htmlspecialchars($details) ."','$start_date','$end_date','1','$category_id','$priority','$percent_complete','$hours')";				$result=db_query($sql);				if (!$result || db_affected_rows($result) < 1) {					$this->setError('ProjectTask::create() Posting Failed '.db_error());					db_rollback();					return false;				} else {					if (!$this->fetchData($project_task_id)) {						db_rollback();						return false;					} else {						$this->sendNotice(1);						db_commit();						return true;					}				}			}		}	}	/**	 *  fetchData - re-fetch the data for this ProjectTask from the database.	 *	 *  @param  int	 The project_task_id.	 *  @return	boolean	success.	 */	function fetchData($project_task_id) {		$res=db_query("SELECT * FROM project_task_vw			WHERE project_task_id='$project_task_id'			AND group_project_id='". $this->ProjectGroup->getID() ."'");		if (!$res || db_numrows($res) < 1) {			$this->setError('ProjectTask::fetchData() Invalid MessageID'.db_error());			return false;		}		$this->data_array =& db_fetch_array($res);		db_free_result($res);		return true;	}	/**	 *	getProjectGroup - get the ProjectGroup object this ProjectTask is associated with.	 *	 *	@return	Object	The ProjectGroup object.	 */	function &getProjectGroup() {		return $this->ProjectGroup;	}	/**	 *	getID - get this project_task_id.	 *	 *	@return	int	The project_task_id.	 */	function getID() {		return $this->data_array['project_task_id'];	}	/**	 *	getSubmittedRealName - get the real name of the person who created this task.	 *	 *	@return	string	The real name person who created this task.	 */	function getSubmittedRealName() {		return $this->data_array['realname'];	}		/**	 *	getSubmittedUnixName - get the unix name of the person who created this task.	 *	 *	@return	string	The unix name of the person who created this task.	 */	function getSubmittedUnixName() {		return $this->data_array['user_name'];	}	/**	 *	getSummary - get the subject/summary of this task.	 *	 *	@return	string	The summary.	 */	function getSummary() {		return $this->data_array['summary'];	}	/**	 *	getDetails - get the body/details of this task.	 *	 *	@return	string	The body/details.	 */	function getDetails() {		return $this->data_array['details'];	}	/**	 *	getPercentComplete - an integer between 0 and 100.	 *	 *	@return	int	The percentage of completion of this task.	 */	function getPercentComplete() {		return $this->data_array['percent_complete'];	}	/**	 *	getPriority - the priority, between 1 and 9 of this task.	 *	 *	@return	int	The priority.	 */	function getPriority() {		return $this->data_array['priority'];	}	/**	 *	getHours - the hours this task is expected to take.	 *	 *	@return	int	The hours.	 */	function getHours() {		return $this->data_array['hours'];	}	/**	 *	getStartDate - the unix time that this task will start.	 *	 *	@return	int	The unix start time of this task.	 */	function getStartDate() {		return $this->data_array['start_date'];	}	/**	 *	getEndDate - the unix time that this task will end.	 *	 *	@return	int	The unix end time of this task.	 */	function getEndDate() {		return $this->data_array['end_date'];	}	/**	 *	getStatusID - the integer of the status of this task.	 *	 *	@return	int	the status_id.	 */	function getStatusID() {		return $this->data_array['status_id'];	}	/**	 *	getStatusName - the string of the status of this task.	 *	 *	@return	string	the status_name.	 */	function getStatusName() {		return $this->data_array['status_name'];	}	/**	 *	getCategoryID - the category_id of this task.	 *	 *	@return	int	the category_id.	 */	function getCategoryID() {		return $this->data_array['category_id'];	}	/**	 *	getCategoryName - the category_name of this task.	 *	 *	@return	int	the category_name.	 */	function getCategoryName() {		return $this->data_array['category_name'];	}	/**	 *	getRelatedArtifacts - Return a result set of artifacts which are related to this task.	 *	 *	@returns Database result set.	 */	function getRelatedArtifacts() {		if (!$this->relatedartifacts) {			$this->relatedartifacts=			db_query("SELECT agl.group_id,agl.name,agl.group_artifact_id,a.artifact_id,a.open_date,a.summary 			FROM artifact_group_list agl, artifact a 			WHERE a.group_artifact_id=agl.group_artifact_id			AND EXISTS (SELECT artifact_id FROM project_task_artifact 				WHERE artifact_id=a.artifact_id				AND project_task_id='". $this->getID() ."')");		}		return $this->relatedartifacts;	}	/**	 *	addRelatedArtifacts - take an array of artifact_id's and build relationships.	 *	 *	@param	array	An array of artifact_id's to be attached to this task.	 *	@return	boolean	success.	 */	function addRelatedArtifacts($art_array) {		$perm =& $this->ProjectGroup->Group->getPermission( session_get_user() );		if (!$perm || !is_object($perm) || !$perm->isPMAdmin()) {			$this->setPermissionDeniedError();			return false;		}////	SHOULD REALLY INSTANTIATE THIS ARTIFACT OBJECT TO ENSURE PROPER SECURITY - FUTURE////	new ArtifactFromID($id)//		for ($i=0; $i<count($art_array); $i++) {			if ($art_array[$i] < 1) {				continue;			}			$res=db_query("INSERT INTO project_task_artifact (project_task_id,artifact_id) 				VALUES ('".$this->getID()."','".$art_array[$i]."')");			if (!$res) {				$this->setError('Error inserting artifact relationship: '.db_error());				return false;			}		}		return true;	}	/**	 *	removeRelatedArtifacts - take an array of artifact_id's and delete relationships.	 *	 *	@param	array	An array of artifact_id's to be removed from this task.	 *	@return	boolean	success.	 */	function removeRelatedArtifacts($art_array) {		$perm =& $this->ProjectGroup->Group->getPermission( session_get_user() );		if (!$perm || !is_object($perm) || !$perm->isPMAdmin()) {			$this->setPermissionDeniedError();			return false;		}		for ($i=0; $i<count($art_array); $i++) {			$res=db_query("DELETE FROM project_task_artifact				WHERE project_task_id='".$this->getID()."'				AND artifact_id='".$art_array[$i]."'");			if (!$res) {				$this->setError('Error deleting artifact relationship: '.db_error());				return false;			}		}		return true;	}/*	function delete() {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区四区久久| 欧美性大战xxxxx久久久| 国产日韩高清在线| 韩国中文字幕2020精品| 99麻豆久久久国产精品免费优播| 亚洲乱码国产乱码精品精可以看| 日韩欧美你懂的| 911精品国产一区二区在线| 蜜臀久久99精品久久久画质超高清| 亚洲精品高清在线观看| 亚洲综合男人的天堂| 亚洲欧洲韩国日本视频| 日本一区二区成人在线| 在线欧美日韩国产| 97久久精品人人澡人人爽| 国产一区二区三区在线观看精品 | 日本欧美加勒比视频| 视频一区中文字幕| 国产欧美一区二区三区网站| 国产成人免费视频一区| 99久久er热在这里只有精品66| 亚洲精品中文在线观看| 亚洲欧美日韩国产手机在线| 中文字幕色av一区二区三区| 日韩国产在线观看一区| 成人综合在线观看| 欧美一级夜夜爽| 一区二区三区高清在线| 国产精品久久久爽爽爽麻豆色哟哟| 亚洲成国产人片在线观看| 99视频热这里只有精品免费| 国产精品美女久久福利网站| 免费高清在线视频一区·| 色8久久精品久久久久久蜜| 欧美日韩一卡二卡| 亚洲欧洲成人自拍| 成人综合在线网站| 久久精品夜夜夜夜久久| 午夜精品久久久久久久99水蜜桃| 一本久久a久久免费精品不卡| 日本一区二区在线不卡| 精品一区二区在线播放| 日本一二三四高清不卡| 欧美视频在线观看一区二区| 秋霞影院一区二区| 天堂蜜桃91精品| 欧美在线啊v一区| 亚洲高清在线视频| 欧美色视频一区| 一区二区三区四区在线播放| bt欧美亚洲午夜电影天堂| 中日韩免费视频中文字幕| 成人av影视在线观看| 亚洲欧美国产三级| 日韩欧美国产1| 欧美一区二区精品在线| 日韩欧美精品在线视频| 日韩你懂的在线播放| 精品日产卡一卡二卡麻豆| 欧美mv和日韩mv国产网站| 91麻豆精品国产91久久久使用方法| 亚洲成人自拍一区| 久久影院午夜论| 成人av中文字幕| 青青草视频一区| 国产精品免费视频网站| 欧美三级电影在线观看| 国内精品久久久久影院一蜜桃| 亚洲欧洲精品成人久久奇米网| 精品视频一区三区九区| 国产精品一区在线| 亚洲成年人影院| 国产精品成人免费| 日韩欧美一级片| 7777精品伊人久久久大香线蕉完整版 | 日韩一级片在线观看| 成人爱爱电影网址| 粉嫩13p一区二区三区| 国产经典欧美精品| 成人性生交大合| aa级大片欧美| 欧美一区二区在线视频| 日韩视频一区二区在线观看| 欧美一级片在线观看| 日韩精品一区二| 国产日韩欧美一区二区三区乱码| 久久网站最新地址| 国产精品伦理在线| 亚洲一二三区在线观看| 日本不卡的三区四区五区| 久久国内精品自在自线400部| 国产精品911| 欧美色图免费看| 日韩精品一区二区三区在线播放| 久久久久一区二区三区四区| 中文字幕一区二区三区在线观看| 亚洲视频资源在线| 看片的网站亚洲| 色综合久久中文综合久久牛| 7777精品伊人久久久大香线蕉经典版下载 | 综合久久综合久久| 欧美久久久久中文字幕| 中文字幕欧美国产| 狠狠色丁香久久婷婷综合_中 | 婷婷久久综合九色综合伊人色| 成人免费视频视频在线观看免费 | 亚洲图片一区二区| 欧美日韩在线播放一区| 亚洲精品视频在线| 91亚洲精品久久久蜜桃| 99精品欧美一区二区三区小说| 蜜桃av一区二区三区电影| 91尤物视频在线观看| 国产精品久久久久久久裸模| 韩国三级电影一区二区| 91精品中文字幕一区二区三区| 亚洲成人综合视频| 欧美日本在线播放| 日本va欧美va精品发布| 欧美日韩精品电影| 麻豆精品一二三| 欧美精品一区二区三区蜜桃视频| 亚洲综合视频网| 538prom精品视频线放| 免费观看91视频大全| 久久综合色综合88| 高清不卡在线观看| 亚洲免费在线看| 欧美一区二区三区在线看| 久久精品国产亚洲一区二区三区| 欧美一区二区视频观看视频 | 国产精品第四页| 欧美熟乱第一页| 免费不卡在线观看| 国产精品久久久久久久蜜臀 | 国产高清不卡二三区| 欧美国产综合一区二区| 日本黄色一区二区| 麻豆精品一二三| 中文字幕乱码一区二区免费| 91国偷自产一区二区三区成为亚洲经典 | 国产成人免费视频网站| 亚洲一区中文在线| 一区二区三区视频在线看| 国产精品视频一二三| ww亚洲ww在线观看国产| 在线播放中文一区| 91精品国产福利| 日韩亚洲欧美在线| 日韩一级免费一区| 欧美一卡二卡在线| 欧美日韩国产高清一区二区三区 | 久久激五月天综合精品| 久久精品久久99精品久久| 精品中文字幕一区二区小辣椒| 久久国产精品色| 国产精品亚洲一区二区三区在线| 国产成a人亚洲| 99麻豆久久久国产精品免费| 色婷婷国产精品久久包臀| 日本丰满少妇一区二区三区| 欧美狂野另类xxxxoooo| 日韩视频免费观看高清在线视频| 久久一区二区三区国产精品| 中文欧美字幕免费| 亚洲国产综合人成综合网站| 精品在线你懂的| 91美女片黄在线观看91美女| 欧美精品1区2区3区| 久久久九九九九| 亚洲一区视频在线| 日韩国产一区二| 91蜜桃网址入口| 欧美精品一区二区高清在线观看 | 成人永久aaa| 91精品免费观看| 国产拍揄自揄精品视频麻豆| 五月激情综合网| 不卡高清视频专区| 制服丝袜成人动漫| 亚洲免费av高清| 六月丁香婷婷久久| 久久精品av麻豆的观看方式| 成人成人成人在线视频| 欧美图片一区二区三区| 欧美mv和日韩mv的网站| 一区二区三区精品| 99热99精品| 中文字幕成人在线观看| 五月天激情综合网| 欧美日韩国产色站一区二区三区| 久久精品欧美日韩精品| 美女高潮久久久| 日韩欧美www| 久久99久久99| 精品国产一区二区三区四区四| 日韩不卡手机在线v区| 精品视频免费看| 亚洲国产欧美日韩另类综合| 色婷婷av一区二区三区大白胸 |