public function allcategories( $prefix = null, $from = null, $min = null, $max = null, $dir = 'ascending', $prop = array(
		'size', 'hidden'
	), $limit = 50 ) {
		$leArray = array(
			'list'   => 'allcategories',
			'_code'  => 'ac',
			'acdir'  => $dir,
			'acprop' => implode( '|', $prop ),
			'_limit' => $limit
		);

		if( !is_null( $from ) ) $leArray['acfrom'] = $from;
		if( !is_null( $prefix ) ) $leArray['acprefix'] = $prefix;
		if( !is_null( $min ) ) $leArray['acmin'] = $min;
		if( !is_null( $max ) ) $leArray['acmax'] = $max;

		Hooks::runHook( 'PreQueryAllimages', array( &$leArray ) );

		pecho( "Getting list of all categories...\n\n", PECHO_NORMAL );

		return $this->listHandler( $leArray );

	}