public static function addIncludePath($path = null)
	{
		// Declare the internal paths as a static variable.
		static $_paths;

		// If the internal paths have not been initialised, do so with the base table path.
		if (!isset($_paths))
		{
			$_paths = array(__DIR__ . '/table');
		}

		// Convert the passed path(s) to add to an array.
		settype($path, 'array');

		// If we have new paths to add, do so.
		if (!empty($path) && !in_array($path, $_paths))
		{
			// Check and add each individual new path.
			foreach ($path as $dir)
			{
				// Sanitize path.
				$dir = trim($dir);

				// Add to the front of the list so that custom paths are searched first.
				array_unshift($_paths, $dir);
			}
		}

		return $_paths;
	}
public static function addIncludePath($path = null)
	{
		// Declare the internal paths as a static variable.
		static $_paths;

		// If the internal paths have not been initialised, do so with the base table path.
		if (!isset($_paths))
		{
			$_paths = array(__DIR__ . '/table');
		}

		// Convert the passed path(s) to add to an array.
		settype($path, 'array');

		// If we have new paths to add, do so.
		if (!empty($path) && !in_array($path, $_paths))
		{
			// Check and add each individual new path.
			foreach ($path as $dir)
			{
				// Sanitize path.
				$dir = trim($dir);

				// Add to the front of the list so that custom paths are searched first.
				array_unshift($_paths, $dir);
			}
		}

		return $_paths;
	}
public static function addIncludePath ( $ path = null ) { // Declare the internal paths as a static variable. static $ _paths ; // If the internal paths have not been initialised, do so with the base table path. if ( ! isset ( $ _paths ) ) { $ _paths = array ( __DIR__ . '/table' ) ; } // Convert the passed path(s) to add to an array. settype ( $ path , 'array' ) ; // If we have new paths to add, do so. if ( ! empty ( $ path ) && ! in_array ( $ path , $ _paths ) ) { // Check and add each individual new path. foreach ( $ path as $ dir ) { // Sanitize path. $ dir = trim ( $ dir ) ; // Add to the front of the list so that custom paths are searched first. array_unshift ( $ _paths , $ dir ) ; } } return $ _paths ; }
Add a filesystem path where Table should search for table class files.
You may either pass a string or an array of paths.

@param   mixed  $path  A filesystem path or array of filesystem paths to add.
@return  array  An array of filesystem paths to find Table classes in.
@since   2.1.12
Add a filesystem path where Table should search for table class files . You may either pass a string or an array of paths .