protected function getRolesFromSite($site)
	{
		$newDataSet = new AnyDataset();
		$it = $this->user->getRolesIterator($site);
		while ($it->hasNext()) {
			$sr = $it->moveNext();
			$dataArray = $sr->getFieldArray($this->user->getRolesTable()->Role);
			if (sizeof($dataArray) > 0) {
				foreach ($dataArray as $roles) {
					$siteName = $sr->getField($this->user->getRolesTable()->Site);
					if ($siteName == "_all") {
						$siteName = $this->myWords->Value("TEXT_ALLSITES");
					}
					$newDataSet->appendRow();
					$newDataSet->addField($this->user->getRolesTable()->Site, $siteName);
					$newDataSet->addField($this->user->getRolesTable()->Role, $roles);
				}	
			}
		}
		return $newDataSet;
	}
protected function getRolesFromSite($site)
	{
		$newDataSet = new AnyDataset();
		$it = $this->user->getRolesIterator($site);
		while ($it->hasNext()) {
			$sr = $it->moveNext();
			$dataArray = $sr->getFieldArray($this->user->getRolesTable()->Role);
			if (sizeof($dataArray) > 0) {
				foreach ($dataArray as $roles) {
					$siteName = $sr->getField($this->user->getRolesTable()->Site);
					if ($siteName == "_all") {
						$siteName = $this->myWords->Value("TEXT_ALLSITES");
					}
					$newDataSet->appendRow();
					$newDataSet->addField($this->user->getRolesTable()->Site, $siteName);
					$newDataSet->addField($this->user->getRolesTable()->Role, $roles);
				}	
			}
		}
		return $newDataSet;
	}
protected function getRolesFromSite ( $ site ) { $ newDataSet = new AnyDataset ( ) ; $ it = $ this -> user -> getRolesIterator ( $ site ) ; while ( $ it -> hasNext ( ) ) { $ sr = $ it -> moveNext ( ) ; $ dataArray = $ sr -> getFieldArray ( $ this -> user -> getRolesTable ( ) -> Role ) ; if ( sizeof ( $ dataArray ) > 0 ) { foreach ( $ dataArray as $ roles ) { $ siteName = $ sr -> getField ( $ this -> user -> getRolesTable ( ) -> Site ) ; if ( $ siteName == "_all" ) { $ siteName = $ this -> myWords -> Value ( "TEXT_ALLSITES" ) ; } $ newDataSet -> appendRow ( ) ; $ newDataSet -> addField ( $ this -> user -> getRolesTable ( ) -> Site , $ siteName ) ; $ newDataSet -> addField ( $ this -> user -> getRolesTable ( ) -> Role , $ roles ) ; } } } return $ newDataSet ; }
Get all rules from a site

@param string $site
@return AnyDataset
Get all rules from a site