BluePrint-Q
  • Namespace
  • Class

Namespaces

  • bpq
  • ski

Classes

  • bootstrap
  • convert
  • cz_checkbox_ctl
  • cz_color_palette_ctl
  • cz_date_picker_ctl
  • cz_detail_ctl
  • cz_divider_1_ctl
  • cz_divider_2_ctl
  • cz_drop_categories_ctl
  • cz_drop_ctl
  • cz_drop_image_sizes_ctl
  • cz_drop_menu_items_ctl
  • cz_drop_menus_ctl
  • cz_drop_pages_ctl
  • cz_drop_post_types_ctl
  • cz_drop_posts_ctl
  • cz_drop_tags_ctl
  • cz_drop_taxonomies_ctl
  • cz_drop_terms_ctl
  • cz_drop_users_ctl
  • cz_dummy_ctl
  • cz_media_library_ctl
  • cz_number_bar_ctl
  • cz_radio_image_align_x_ctl
  • cz_radio_image_align_y_ctl
  • cz_radio_image_alignment_ctl
  • cz_radio_image_ctl
  • cz_radio_image_sidebar_layout_ctl
  • cz_radio_image_site_span_layout_ctl
  • cz_radio_text_ctl
  • cz_text_area_ctl
  • cz_textbox_ctl
  • db
  • db_recordset
  • drop
  • mail
  • math
  • mb_checkbox_ctl
  • mb_ctl
  • mb_date_picker_ctl
  • mb_detail_ctl
  • mb_divider_ctl
  • mb_drop_ctl
  • mb_media_library_ctl
  • mb_number_bar_ctl
  • mb_radio_image_ctl
  • mb_radio_image_sidebar_layout_ctl
  • mb_radio_image_site_span_layout_ctl
  • mb_radio_text_ctl
  • mb_repeater_ctl
  • mb_text_area_ctl
  • mb_text_ctl
  • mb_text_notice_ctl
  • mb_textbox_ctl
  • media
  • metabox
  • path
  • post
  • question
  • sanitize
  • string
  • textbox

Traits

  • cz_supplement

Functions

  • customize_register_section
  • cz_enqueue
  • init
  • metabox_sample

Class path

A utility class for performing operations on paths.

Namespace: ski
Located at packages/ski.web/services/ski.service.path.php

Methods summary

public static string
# get_current_url( )

Constructs the full URL with query string - oddly, there is not a single PHP $_SERVER value already.

Constructs the full URL with query string - oddly, there is not a single PHP $_SERVER value already.

Returns

string
The full URL along with query string
public static string
# make_absolute( string $url, string $base )

Takes a relative URL and changes it into an absolute URL considering the base URL page.

Takes a relative URL and changes it into an absolute URL considering the base URL page.

From: http://www.geekality.net/2011/05/12/php-dealing-with-absolute-and-relative-urls/

Parameters

$url
string
$url The relative URL to convert
$base
string
$base The URL that the relative URL resides, directories must end with a front-slash

Returns

string
The converted absolute URL
public static string
# change_extension( string $file_path, string $new_extension )

Changes the extension of a file.

Changes the extension of a file.

Parameters

$file_path
string
$file_path The full file name/path to change
$new_extension
string
$new_extension The extension to change to (no leading dot)

Returns

string
The newly-changed full file name/path
public static array
# get_files( string $folder, string $pattern = '/.*/', boolean $include_subdirectories = false )

Returns an array of files found under a specific directory.

Returns an array of files found under a specific directory.

Parameters

$folder
string
$folder The directory path to search for files
$pattern
string
$pattern A regex pattern to be used to filter in results (take care that this could match the whole path)
$include_subdirectories
boolean
$include_subdirectories Set to 'true' if all subfolder should be searched; set to 'false' if just the top-level

Returns

array
The list of fule filepaths that met the criteria
public static string
# force_forward_slashes( string $path )

Changes all occurences of backslashes to forward slashes - can come in handy when working with a windows path that needs to look like a *nix path instead.

Changes all occurences of backslashes to forward slashes - can come in handy when working with a windows path that needs to look like a *nix path instead.

Parameters

$path
string
$path The path to change

Returns

string
The path with forward slashes
public static string
# get_ski_directory_uri( )

Trying to figure out the ski.web directory for both local and remote versions has become ridiculous. As a result, it is a requirement for installation that the programmer define the SKI_URI. Should be something like 'http://localhost/mysite' instead of 'e:\wamp\www\mysite'.

Trying to figure out the ski.web directory for both local and remote versions has become ridiculous. As a result, it is a requirement for installation that the programmer define the SKI_URI. Should be something like 'http://localhost/mysite' instead of 'e:\wamp\www\mysite'.

Returns

string
The full path to where ski.web resides

Magic methods summary

BluePrint-Q API documentation generated by ApiGen 2.8.0