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

class BSGGroupAuthAttr extends BSGBasicAuth
{
	var $daoga = null;
	var $param = null;
	var $cid = 0;

	function BSGGroupAuthAttr()
	{
		$this->daoga = new DAOGAuth();
	}

	function getAuth($_filedirdb, $_user_id)
	{
		if ($this->daoga!=null)
		{
			if ($this->cid!=$_filedirdb->getid())
			{
				$this->param = $this->daoga->getgroupparamattrbyuser($_filedirdb, $_user_id);
				$this->cid = $_filedirdb->getid();
			}
			if ($this->param!=null)
			{
				if ($_filedirdb->gettype()==DIRECTORY)
				{
					if (isset($this->param[DIRECTORY][0]))
						return $this->param[DIRECTORY][0];
				}
				elseif ($_filedirdb->gettype()==SFILE)
				{
					if (isset($this->param[SFILE][0]))
						return $this->param[SFILE][0];
				}
			}
			return false;
		}

	}
}

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