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 Url1

Direct known subclasses

exUrl1
Located at easycore/Ehex.php
Methods summary
public static boolean
# pingWithPort( string $host = 'www.google.com', integer $port = 80, integer $timeout = 6 )

Ping Website, Remove Http://...

Ping Website, Remove Http://...

Parameters

$host
$port
$timeout

Returns

boolean
public static
# pingExec( $host )
public static
# ping( $host = 'www.google.com', $returnPageContent = false )
public static
# createSymLinks( $fromDirectory, $toDirectory )
public static string|null
# getIPAddress( null $ip = null, boolean $deep_detect = TRUE )

Parameters

$ip
$deep_detect

Returns

string|null
public static boolean|string
# getIPAddressInformation( null $ip = null, string $siteInfo = 'http://freegeoip.net/json/' )

Return Array of ... "ip", "country_code", "country_name", "region_code", "region_name", "city", "zipcode", "latitude", "longitude", "metro_code", "areacode",

Return Array of ... "ip", "country_code", "country_name", "region_code", "region_name", "city", "zipcode", "latitude", "longitude", "metro_code", "areacode",

Parameters

$ip
$siteInfo

Returns

boolean|string
public static
# getEhexCoreAssetsPath( )
public static
# existInUrl( $likelyUrl, $fullCurrentPageUrl = null )
public static
# ifExistInUrl( $link = '/', $returnValue = 'active', $elseReturnValue = '' )
public static
# ifUrlEquals( $compareFullUrl = 'http://l...', $returnValue = 'active', $elseReturnValue = '' )
public static
# buildParameter( $param = [], $url = null )
public static
# isUrlExist( $url )
public static
# relativePathToUrl( $path, $fullDirectoryPath = __DIR__ )
public static
# normalizePath( $path )
public static
# pathToUrl( $path, $redundantPath = null )
public static
# urlToPath( $url )
public static
# include_item( $url )
public static
# getRootDirectoryPath( )
public static array
# convertUrlParamToArray( null $url = null )

is not current url, Which suppose to be in $_GET

is not current url, Which suppose to be in $_GET

Parameters

$url

Returns

array
public static
# prependHttp( $url )
public static
# getSiteMainAddress_fromRoute( )
public static
# getSiteMainAddress( $server = null, $use_forwarded_host = false )
public static
# getSiteMainAddress_from( $url )
public static
# getPageFullUrl( $replaceParameter = [], $removeParameterKey = [], $server = null, $use_forwarded_host = false )
public static
# getPageFullUrl_noGetParameter( $server = null, $use_forwarded_host = false )
public static
# replaceParameterAndGetUrl( $replaceParameter = [], $removeParameterKey = [], $url = null )
public static
# getPageName( $url = null )
public static
# getSiteName( $url = null )
public static
# backUrl( )
public static
# redirect( $redirectUrl = '/', $status = [], $param = [] )
public static null
# redirectIf( null $redirectUrl = null, array $message = [], array $trueConditionList = [true], array $additionalData = [], callable $elseCallback = null )

Example \Url1::redirectIf(\Session1::get('last_page'), 'Welcome Back', [\Session1::exists('last_page')]);

Example \Url1::redirectIf(\Session1::get('last_page'), 'Welcome Back', [\Session1::exists('last_page')]);

Parameters

$redirectUrl
$message
$trueConditionList
$additionalData
$elseCallback

Returns

null
public static
# redirectWithMessage( $actionResult = true, $redirectUrl = null, $trueMessage = 'Action Successful', $falseMessage = 'Action Failed', $additionalData = [] )
public static
# openBlank( $url )
public static
# sanitize( $url )
public static
# getPageContent( $siteUrl = 'https://xamtax.com' )
public static
# getPageAssets( $siteUrl = 'https://xamtax.com' )
public static string
# cURL( $url = 'https://google.com?q=Ehex', array $postData = [], boolean $httpHeader = ['Content-type: application/x-www-form-urlencoded;charset=UTF-8'], string $allowCookie = TRUE, string $cookie = 'cookies.txt', string $compression = 'gzip', $proxy = '' )

cURL constructor.

cURL constructor.

Parameters

$url
$postData
$httpHeader
$allowCookie
$allowCookie
$cookie
$cookie
$compression
$compression

$proxy

$cc = new cURL(); $cc->get('http://www.example.com'); $cc->post('http://www.example.com','foo=bar');

$proxy

Returns

string
public static
# cURL_fromGuzzle( $url = 'https://google.com?q=Ehex', $postParam = [], $header = [] )
public static string
# cURL_lite( $url = '' )

Parameters

$url
$APIToken.'/search/'.$no; [ $APIToken = ""; // PHPHive Truecaller API Token, Obtain it from https://tcapi.phphive.info/console/]

Returns

string
public static boolean|string
# post( $url, array $postVars = array() )

Parameters

$url
a HTTP POST request without using cURL. This may be helpful for those of you that require an easy alternative to PHP’s cURL extension.
$postVars

Returns

boolean|string

Throws

Exception
API documentation generated by ApiGen