public function additionalSolrValues() {

		if(($this->owner->CanViewType === 'Inherit') && $this->owner->ParentID) {

			// Recursively determine the site tree element permissions where required.

			return $this->owner->Parent()->additionalSolrValues();
		}
		else if($this->owner->CanViewType === 'OnlyTheseUsers') {

			// Return the listing of groups that have access.

			$groups = array();
			foreach($this->owner->ViewerGroups() as $group) {
				$groups[] = (string)$group->ID;
			}
			return array(
				$this->index => $groups
			);
		}
		else if($this->owner->CanViewType === 'LoggedInUsers') {

			// Return an appropriate flag for logged in access.

			return array(
				$this->index => array(
					'logged-in'
				)
			);
		}
		else {

			// Return an appropriate flag for general public access.

			return array(
				$this->index => array(
					'anyone'
				)
			);
		}
	}
public function additionalSolrValues() {

		if(($this->owner->CanViewType === 'Inherit') && $this->owner->ParentID) {

			// Recursively determine the site tree element permissions where required.

			return $this->owner->Parent()->additionalSolrValues();
		}
		else if($this->owner->CanViewType === 'OnlyTheseUsers') {

			// Return the listing of groups that have access.

			$groups = array();
			foreach($this->owner->ViewerGroups() as $group) {
				$groups[] = (string)$group->ID;
			}
			return array(
				$this->index => $groups
			);
		}
		else if($this->owner->CanViewType === 'LoggedInUsers') {

			// Return an appropriate flag for logged in access.

			return array(
				$this->index => array(
					'logged-in'
				)
			);
		}
		else {

			// Return an appropriate flag for general public access.

			return array(
				$this->index => array(
					'anyone'
				)
			);
		}
	}
public function additionalSolrValues ( ) { if ( ( $ this -> owner -> CanViewType === 'Inherit' ) && $ this -> owner -> ParentID ) { // Recursively determine the site tree element permissions where required. return $ this -> owner -> Parent ( ) -> additionalSolrValues ( ) ; } else if ( $ this -> owner -> CanViewType === 'OnlyTheseUsers' ) { // Return the listing of groups that have access. $ groups = array ( ) ; foreach ( $ this -> owner -> ViewerGroups ( ) as $ group ) { $ groups [ ] = ( string ) $ group -> ID ; } return array ( $ this -> index => $ groups ) ; } else if ( $ this -> owner -> CanViewType === 'LoggedInUsers' ) { // Return an appropriate flag for logged in access. return array ( $ this -> index => array ( 'logged-in' ) ) ; } else { // Return an appropriate flag for general public access. return array ( $ this -> index => array ( 'anyone' ) ) ; } }
Retrieve the custom search index value for the current site tree element, returning the listing of groups that have access.
@return array
Retrieve the custom search index value for the current site tree element returning the listing of groups that have access .