src/Thybag/SharePointAPI.php
public function getLists () {
		// Query Sharepoint for full listing of it's lists.
		$rawXml = '';
		try {
			$rawXml = $this->soapClient->GetListCollection()->GetListCollectionResult->any;
		} catch (\SoapFault $fault) {
			$this->onError($fault);
		}

		// Load XML in to DOM document and grab all list items.
		$nodes = $this->getArrayFromElementsByTagName($rawXml, 'List');

		// Format data in to array or object
		foreach ($nodes as $counter => $node) {
			foreach ($node->attributes as $attribute => $value) {
				$idx = ($this->lower_case_indexs) ? strtolower($attribute) : $attribute;
				$results[$counter][$idx] = $node->getAttribute($attribute);
			}

			// Make object if needed
			if ($this->returnType === 1) {
				settype($results[$counter], 'object');
			}
		}

		// Add error array if stuff goes wrong.
		if (!isset($results)) {
			$results = array('warning' => 'No data returned.');
		}

		return $results;
	}
public function getLists () {
		// Query Sharepoint for full listing of it's lists.
		$rawXml = '';
		try {
			$rawXml = $this->soapClient->GetListCollection()->GetListCollectionResult->any;
		} catch (\SoapFault $fault) {
			$this->onError($fault);
		}

		// Load XML in to DOM document and grab all list items.
		$nodes = $this->getArrayFromElementsByTagName($rawXml, 'List');

		// Format data in to array or object
		foreach ($nodes as $counter => $node) {
			foreach ($node->attributes as $attribute => $value) {
				$idx = ($this->lower_case_indexs) ? strtolower($attribute) : $attribute;
				$results[$counter][$idx] = $node->getAttribute($attribute);
			}

			// Make object if needed
			if ($this->returnType === 1) {
				settype($results[$counter], 'object');
			}
		}

		// Add error array if stuff goes wrong.
		if (!isset($results)) {
			$results = array('warning' => 'No data returned.');
		}

		return $results;
	}
public function getLists ( ) { // Query Sharepoint for full listing of it's lists. $ rawXml = '' ; try { $ rawXml = $ this -> soapClient -> GetListCollection ( ) -> GetListCollectionResult -> any ; } catch ( \ SoapFault $ fault ) { $ this -> onError ( $ fault ) ; } // Load XML in to DOM document and grab all list items. $ nodes = $ this -> getArrayFromElementsByTagName ( $ rawXml , 'List' ) ; // Format data in to array or object foreach ( $ nodes as $ counter => $ node ) { foreach ( $ node -> attributes as $ attribute => $ value ) { $ idx = ( $ this -> lower_case_indexs ) ? strtolower ( $ attribute ) : $ attribute ; $ results [ $ counter ] [ $ idx ] = $ node -> getAttribute ( $ attribute ) ; } // Make object if needed if ( $ this -> returnType === 1 ) { settype ( $ results [ $ counter ] , 'object' ) ; } } // Add error array if stuff goes wrong. if ( ! isset ( $ results ) ) { $ results = array ( 'warning' => 'No data returned.' ) ; } return $ results ; }
Get Lists
Return an array containing all avaiable lists within a given sharepoint subsite.
Use "set return type" if you wish for this data to be provided as an object.

@return array (array) | array (object)
Get Lists Return an array containing all avaiable lists within a given sharepoint subsite . Use set return type if you wish for this data to be provided as an object .