Overview

Classes

  • Api1
  • Array1
  • ArrayObject1
  • Auth1
  • AuthModel1
  • Chat1
  • Class1
  • Color1
  • Console1
  • Controller1
  • Converter1
  • Cookie1
  • Date1
  • DateManager1
  • Db1
  • DbPref1
  • EasyBook
  • EasyCountry
  • EasyGenerator
  • EasyProduct
  • EasyProject
  • EasySchool
  • EasyStatus
  • exApiController1
  • exBlade1
  • exClass
  • exData1
  • exMail1
  • exRoute1
  • exTranslate1
  • exUrl1
  • FileManager1
  • FilePref1
  • Form1
  • Function1
  • Header1
  • Html1
  • HtmlAsset1
  • HtmlForm1
  • HtmlStyle1
  • HtmlWidget1
  • Math1
  • Model1
  • Model1FileLocator
  • Number1
  • Object1
  • Page1
  • Picture1
  • Popup1
  • QUESTION_TYPE
  • RecursiveArrayObject1
  • RegEx1
  • ResultObject1
  • ResultStatus1
  • ServerRequest1
  • Session1
  • SessionPreferenceSave1
  • String1
  • TaskManager1
  • Url1
  • Validation1
  • Value1

Interfaces

  • Controller1RouteInterface
  • Model1ActionInterface
  • Model1PageInterface

Functions

  • __
  • api_and_form_default_route
  • app
  • app_api_list
  • app_class_list
  • app_class_paths
  • app_class_with_interface
  • app_controller_list
  • app_dashboard_list
  • app_db_model_list
  • app_db_table_list
  • app_model_list
  • app_page_list
  • asset
  • csrf_token
  • current_layout_asset
  • current_plugin_asset
  • current_resources_asset_path
  • d
  • dd
  • file_base
  • file_session
  • file_session_get
  • file_session_remove
  • file_session_save
  • form_call_api
  • form_call_controller
  • form_token
  • get_all_view_in_directory
  • get_valid_view_path
  • is_token_valid
  • is_ajax_request
  • layout_asset
  • mailer
  • mailer_send_mail_to_list
  • make_default_route
  • makeRoute
  • normalizeSharedPath
  • now
  • now_date
  • now_time
  • old
  • paginate
  • path_app
  • path_asset
  • path_asset_url
  • path_clear_cache
  • path_main
  • path_main_url
  • path_shared
  • path_shared_app
  • path_shared_asset
  • path_shared_asset_url
  • path_shared_resources
  • path_to_viewpath
  • plugin_asset
  • pre
  • redirect
  • redirect_back
  • redirect_failed
  • redirect_to_view
  • register_path_for_layout_asset
  • request
  • resources_path
  • resources_path_asset
  • resources_path_cache
  • resources_path_plugin
  • resources_path_view
  • resources_path_view_cache
  • resources_path_view_layout
  • route
  • routes
  • shared_asset
  • token
  • translate_language
  • translated_language
  • url
  • view
  • view_exists
  • view_make
  • viewpath_to_path
  • Overview
  • Class

Class exUrl1

Url1
Extended by exUrl1
Located at config/ex1.php
Methods summary
public static mixed
# request( array $insertOrReplaceKeyValue = [], array $filterCheckBoxNameList = [], array $filterFileUploadNameList = [] )

Get any sent request like $_GET, $_POST and $_FILES... Also all value are being normalized. Checkbox value are set to either true of false, and files are well arrange, in Parameter, Set the Names

Get any sent request like $_GET, $_POST and $_FILES... Also all value are being normalized. Checkbox value are set to either true of false, and files are well arrange, in Parameter, Set the Names

Parameters

$insertOrReplaceKeyValue
:override any request data or add new one to it
$filterCheckBoxNameList
: convert boolean on and off to php boolean true and false
$filterFileUploadNameList
; normalize file name very well, use in Ehex Sample blog

Returns

mixed
public static
# makeRoute( $name, $function )

Create Route

Create Route

Parameters

$name
$function
public static ArrayObject|mixed
# routes( array $except = [], boolean $listAsMenu = false, array $renameLinkName_oldName_equals_newName = [] )

Return all Menu, can be accessed through routes()->login

Return all Menu, can be accessed through routes()->login

Parameters

$except
$listAsMenu
$renameLinkName_oldName_equals_newName

Returns

ArrayObject|mixed
public static string
# url( null $path = null )

Parameters

$path

Returns

string
public static string
# redirectToView( $viewPageName, array $param = [], boolean $actionResult = false, array $trueMessage = [], array $falseMessage = [] )

Parameters

$viewPageName
$param
$actionResult
$trueMessage
$falseMessage

Returns

string
public static Route|RouteSystem|string
# route( $name, array $param_data = [] )

Navigate to any menu

Navigate to any menu

Parameters

$name
$param_data

Returns

Route|RouteSystem|string
public static RouteRequest
# getCurrentRoute( )

Returns

RouteRequest
public static mixed|string
# old( $inputVariable, $default )

Parameters

$inputVariable
$default

Returns

mixed|string
public static
# view( $view_name, array $param = [] )

Parameters

$view_name
$param
public static
# pathClearCache( )

delete all cache

delete all cache

public static string
# asset( string $path = '', boolean $findInSharedAssets = false )

Get Assets files

Get Assets files

Parameters

$path
$findInSharedAssets

Returns

string
public static string
# registerPathForLayoutAsset( $optional_layoutViewPath_or_layoutFullPath = null, $backtrace_index = 0 )

Add to Every Template to Register Template/assets folder for layout_assets(...) method use.

Add to Every Template to Register Template/assets folder for layout_assets(...) method use.

Returns

string
public static string
# layoutAsset( string $filename = '', null $layout_name = null, string $assets_folder_name = 'assets' )

Locate Layout assets path automatically with the help of passed in exUrl1::registerPathForLayoutAsset()

Locate Layout assets path automatically with the help of passed in exUrl1::registerPathForLayoutAsset()

Parameters

$filename
$layout_name
$assets_folder_name

Returns

string

Throws

Exception

See

exUrl1::registerPathForLayoutAsset()
public static mixed
# currentLayoutAsset( string $file_path_name = '', string $assets_folder_name = 'assets' )

Use in your layout to get current location of layout assets

Use in your layout to get current location of layout assets

Parameters

$file_path_name
$assets_folder_name

Returns

mixed

Throws

Exception

See

current_layout_asset()
public static mixed
# currentPluginAsset( string $file_path_name = '', string $assets_folder_name = 'assets' )

Use in your plugin to get current location of plugin assets

Use in your plugin to get current location of plugin assets

Parameters

$file_path_name
$assets_folder_name

Returns

mixed

Throws

Exception

See

current_plugin_asset()
public static string
# pathApp( string $path = '' )

Get APp Path

Get APp Path

Parameters

$path

Returns

string
public static string
# pathMain( string $path = '' )

Main Project DIrectory

Main Project DIrectory

Parameters

$path

Returns

string
public static string
# pathAsset( string $path = '' )

Parameters

$path

Returns

string
public static string
# pathAssetUrl( string $path = '', boolean $findInSharedAssets = false )

Parameters

$path
$findInSharedAssets

Returns

string
public static string
# pathMainUrl( string $path = '' )

Parameters

$path

Returns

string
public static string
# pathShared( string $path = '', string $directory = '' )

shared path

shared path

Parameters

$path
$directory

Returns

string
public static string
# pathSharedResources( string $path = '' )

Parameters

$path

Returns

string
public static string
# pathSharedApp( string $path = '' )

Parameters

$path

Returns

string
public static string
# pathSharedAssetUrl( string $path = '' )

Parameters

$path

Returns

string
public static
# resourcesPath( )
public static string
# resourcesPathView( )

Returns

string
public static string
# resourcesPathCache( )

Returns

string
public static string
# resourcesPathAsset( )

Returns

string
public static string
# resourcesPathPlugin( string $isShared = '' )

Parameters

$isShared

Returns

string
public static string
# resourcesPathViewLayout( string $isShared = '' )

Parameters

$isShared

Returns

string
public static array
# appClassPaths( )

get all model path

get all model path

Returns

array
public static array
# appClassList( array $typeList = [Model1::class, Controller1::class, Api1::class] )

get all list of class type in app

get all list of class type in app

Parameters

$typeList

Returns

array
public static mixed
# convertPathToUrl( $path )

Parameters

$path

Returns

mixed

convert PATH: /application/htdoc/project/image.jpg to URL: http://mysite.com/image.jpg

public static mixed
# convertUrlToPath( $url )

convert URL: http://mysite.com/image.jpg to PATH: /application/htdoc/project/image.jpg

convert URL: http://mysite.com/image.jpg to PATH: /application/htdoc/project/image.jpg

Parameters

$url

Returns

mixed
Methods inherited from Url1
backUrl(), buildParameter(), cURL(), cURL_fromGuzzle(), cURL_lite(), convertUrlParamToArray(), createSymLinks(), existInUrl(), getEhexCoreAssetsPath(), getIPAddress(), getIPAddressInformation(), getPageAssets(), getPageContent(), getPageFullUrl(), getPageFullUrl_noGetParameter(), getPageName(), getRootDirectoryPath(), getSiteMainAddress(), getSiteMainAddress_from(), getSiteMainAddress_fromRoute(), getSiteName(), ifExistInUrl(), ifUrlEquals(), include_item(), isUrlExist(), normalizePath(), openBlank(), pathToUrl(), ping(), pingExec(), pingWithPort(), post(), prependHttp(), redirect(), redirectIf(), redirectWithMessage(), relativePathToUrl(), replaceParameterAndGetUrl(), sanitize(), urlToPath()
API documentation generated by ApiGen