public function bucket_list($include_default_bucket = true)
	{
		$bucket_list = array();

		foreach ($this->buckets as $bucket_id)
		{
			// skip the default bucket if ignored
			if ( ($include_default_bucket === false) && ($bucket_id === self::DEFAULT_BUCKET) )
			{
				continue;
			}

			$bucket_list[] = $bucket_id;
		}

		return $bucket_list;
	}
public function bucket_list($include_default_bucket = true)
	{
		$bucket_list = array();

		foreach ($this->buckets as $bucket_id)
		{
			// skip the default bucket if ignored
			if ( ($include_default_bucket === false) && ($bucket_id === self::DEFAULT_BUCKET) )
			{
				continue;
			}

			$bucket_list[] = $bucket_id;
		}

		return $bucket_list;
	}
public function bucket_list ( $ include_default_bucket = true ) { $ bucket_list = array ( ) ; foreach ( $ this -> buckets as $ bucket_id ) { // skip the default bucket if ignored if ( ( $ include_default_bucket === false ) && ( $ bucket_id === self :: DEFAULT_BUCKET ) ) { continue ; } $ bucket_list [ ] = $ bucket_id ; } return $ bucket_list ; }
Return a list of the buckets which have been created

@param bool $include_default_bucket Optionally include self::DEFAULT_BUCKET in returned value (DEFAULT: true).
@return array list of buckets
Return a list of the buckets which have been created