Class JGithubHooks
	
	
GitHub API Hooks class for the Joomla Platform.
	 
	
		- 
			JGithubObject
			
			
			
		
- 
			 JGithubHooks JGithubHooks
Methods summary
		
		
			| 
				 public 
				object
				
				 | 
			#
			create( string $user, string $repo, string $name, array $config, array $events = array('push'), boolean $active = true )
				
Method to create a hook on a repository. 
				
Method to create a hook on a repository. Parameters
						$userstring- $user The name of the owner of the GitHub repository.$repostring- $repo The name of the GitHub repository.$namestring- $name The name of the service being called.$configarray- $config Array containing the config for the service.$eventsarray- $events The events the hook will be triggered for.$activeboolean- $active Flag to determine if the hook is activeReturns
						object
 ThrowsSince
							12.3
 | 
		
			| 
				 public 
				object
				
				 | 
			#
			delete( string $user, string $repo, integer $id )
				
Method to delete a hook Parameters
						$userstring- $user The name of the owner of the GitHub repository.$repostring- $repo The name of the GitHub repository.$idinteger- $id ID of the hook to delete.Returns
						object
 ThrowsSince
							12.3
 | 
		
			| 
				 public 
				object
				
				 | 
			#
			edit( string $user, string $repo, integer $id, string $name, array $config, array $events = array('push'), array $addEvents = array(), array $removeEvents = array(), boolean $active = true )
				
Method to edit a hook. Parameters
						$userstring- $user The name of the owner of the GitHub repository.$repostring- $repo The name of the GitHub repository.$idinteger- $id ID of the hook to edit.$namestring- $name The name of the service being called.$configarray- $config Array containing the config for the service.$eventsarray- $events The events the hook will be triggered for. This resets the currently set
list$addEventsarray- $addEvents Events to add to the hook.$removeEventsarray- $removeEvents Events to remove from the hook.$activeboolean- $active Flag to determine if the hook is activeReturns
						object
 ThrowsSince
							12.3
 | 
		
			| 
				 public 
				object
				
				 | 
			#
			get( string $user, string $repo, integer $id )
				
Method to get details about a single hook for the repository. 
				
Method to get details about a single hook for the repository. Parameters
						$userstring- $user The name of the owner of the GitHub repository.$repostring- $repo The name of the GitHub repository.$idinteger- $id ID of the hook to retrieveReturns
						object
 ThrowsSince
							12.3
 | 
		
			| 
				 public 
				object
				
				 | 
			#
			getList( string $user, string $repo, integer $page = 0, integer $limit = 0 )
				
Method to list hooks for a repository. 
				
Method to list hooks for a repository. Parameters
						$userstring- $user The name of the owner of the GitHub repository.$repostring- $repo The name of the GitHub repository.$pageinteger- $page Page to request$limitinteger- $limit Number of results to return per pageReturns
						object
 ThrowsSince
							12.3
 | 
		
			| 
				 public 
				object
				
				 | 
			#
			test( string $user, string $repo, integer $id )
				
Method to test a hook against the latest repository commit 
				
Method to test a hook against the latest repository commit Parameters
						$userstring- $user The name of the owner of the GitHub repository.$repostring- $repo The name of the GitHub repository.$idinteger- $id ID of the hook to deleteReturns
						object
 ThrowsSince
							12.3
 | 
		
		
		
			__construct(), 
			fetchUrl(), 
			processResponse()
		
		Magic methods summary
		Properties summary
		
		
			| 
				protected  
				array
			 | $events | 
				#
				
					
Array containing the allowed hook events 
					
Array containing the allowed hook events Since
								12.3
 | 
		
		
		
			$client, 
			$options