Location: PHPKode > projects > RabbitBB - Online Web Storage Project > mywebdrive/PHP_CON/file/DAOlsDir.php
<?PHP

class DAOlsDir extends DAOGetFileDirAttr
{
	var $db;
	var $db_table;
	var $db_field;

	function DAOlsDir()
	{
		global $db, $db_table, $db_field;
		$this->db = $db;
		$this->db_table = $db_table;
		$this->db_field = $db_field;
	}

	function lsDir($_filedirdb)
	{
	//	print_r($_filedirdb);

		$sqlq = new SQLSelect();
		$sqlq->setSelect($this->db_field['filedirdb'],
			$this->db_table['filedirdb']);
		$sqlq->setSelect($this->db_field['dirattr'],
			$this->db_table['dirattr']);
		$sqlq->setWhere($this->db_table['filedirdb'].".pid=".
			$_filedirdb->getid());
		$sqlq->setWhere($this->db_table['filedirdb'].".linkid=".
			$this->db_table['dirattr'].".id");
		$sqlq->setWhere($this->db_table['filedirdb'].".type=".
			DIRECTORY);

		//echo("<PRE>");
		return ($this->populate($sqlq->getRow($this->db, $sqlq->SQLReturn())));

		//echo($sqlq->SQLReturn());

		
	}

}

?>
Return current item: RabbitBB - Online Web Storage Project