owncloud-serv/lib/private/route/route.php
/**
	 * The action to execute when this route matches
	 *
	 * @param string|callable $class the class or a callable
	 * @param string $function the function to use with the class
	 * @return \OC\Route\Route
	 *
	 * This function is called with $class set to a callable or
	 * to the class with $function
	 */
The action to execute when this route matches
@param string|callable $class the class or a callable
@param string $function the function to use with the class
@return \OC\Route\Route

This function is called with $class set to a callable or
to the class with $function
The action to execute when this route matches @param string|callable $class the class or a callable @param string $function the function to use with the class @return \ OC \ Route \ Route This function is called with $class set to a callable or to the class with $function
public function action($class, $function = null) {
		$action = array($class, $function);
		if (is_null($function)) {
			$action = $class;
		}
		$this->setDefault('action', $action);
		return $this;
	}
public function action ( $ class , $ function = null ) { $ action = array ( $ class , $ function ) ; if ( is_null ( $ function ) ) { $ action = $ class ; } $ this -> setDefault ( 'action' , $ action ) ; return $ this ; }
The action to execute when this route matches
 @param string|callable $class the class or a callable
 @param string $function the function to use with the class
 @return \OC\Route\Route
The action to execute when this route matches @param string|callable $class the class or a callable @param string $function the function to use with the class @return \ OC \ Route \ Route