public function addButtonPath($path)
	{
		// Just force path to array.
		settype($path, 'array');

		// Loop through the path directories.
		foreach ($path as $dir)
		{
			// No surrounding spaces allowed!
			$dir = trim($dir);

			// Add trailing separators as needed.
			if (substr($dir, -1) != DIRECTORY_SEPARATOR)
			{
				// Directory
				$dir .= DIRECTORY_SEPARATOR;
			}

			// Add to the top of the search dirs.
			array_unshift($this->_buttonPath, $dir);
		}
	}
public function addButtonPath($path)
	{
		// Just force path to array.
		settype($path, 'array');

		// Loop through the path directories.
		foreach ($path as $dir)
		{
			// No surrounding spaces allowed!
			$dir = trim($dir);

			// Add trailing separators as needed.
			if (substr($dir, -1) != DIRECTORY_SEPARATOR)
			{
				// Directory
				$dir .= DIRECTORY_SEPARATOR;
			}

			// Add to the top of the search dirs.
			array_unshift($this->_buttonPath, $dir);
		}
	}
public function addButtonPath ( $ path ) { // Just force path to array. settype ( $ path , 'array' ) ; // Loop through the path directories. foreach ( $ path as $ dir ) { // No surrounding spaces allowed! $ dir = trim ( $ dir ) ; // Add trailing separators as needed. if ( substr ( $ dir , - 1 ) != DIRECTORY_SEPARATOR ) { // Directory $ dir .= DIRECTORY_SEPARATOR ; } // Add to the top of the search dirs. array_unshift ( $ this -> _buttonPath , $ dir ) ; } }
Add a directory where ToolBar should search for button types in LIFO order.

You may either pass a string or an array of directories.

Toolbar will be searching for an element type in the same order you
added them. If the parameter type cannot be found in the custom folders,
it will look in __DIR__ . /toolbar/button.

@param   mixed  $path  Directory or directories to search.
@return  void
Add a directory where ToolBar should search for button types in LIFO order .