PHP Class common, adsb-receiver

Exibir arquivo Open project: jprochazka/adsb-receiver Class Usage Examples

Public Methods

Method Description
addSetting ( $name, $value )
cleanAndShortenString ( $string, $length ) Remove HTML from a string and shorten to the specified length.
deleteSetting ( $name )
extractString ( $string, $start, $end ) Function that returns the string contained between two strings.
getAdminstratorName ( $login ) Returns the name associated to the specified administrator login.
getBaseUrl ( ) Returns the base URL from the requested URL.
getDatabaseSize ( $measurment = "" ) Get the size of the database.
getSetting ( $name ) Returns the value for the specified setting name.
paginateArray ( $inArray, $page, $itemsPerPage ) Pagination.
pdoOpen ( ) Open a connection to the database.
postBack ( ) Check if page load is a post back.
randomString ( $length ) Generate a random string of the given length.
removeExtension ( $fileName ) Returns the supplied file name without an extension.
removeHtmlTags ( $string ) Remove all HTML tags from a string.
sendEmail ( $to, $subject, $message ) Send an email.
stringToBoolean ( $value ) Return a boolean from a string.
updateSetting ( $name, $value ) Updates the value for the specified setting name.

Method Details

addSetting() public method

public addSetting ( $name, $value )

cleanAndShortenString() public method

Remove HTML from a string and shorten to the specified length.
public cleanAndShortenString ( $string, $length )

deleteSetting() public method

public deleteSetting ( $name )

extractString() public method

Function that returns the string contained between two strings.
public extractString ( $string, $start, $end )

getAdminstratorName() public method

Returns the name associated to the specified administrator login.
public getAdminstratorName ( $login )

getBaseUrl() public method

Returns the base URL from the requested URL.
public getBaseUrl ( )

getDatabaseSize() public method

Get the size of the database.
public getDatabaseSize ( $measurment = "" )

getSetting() public method

Returns the value for the specified setting name.
public getSetting ( $name )

paginateArray() public method

Pagination.
public paginateArray ( $inArray, $page, $itemsPerPage )

pdoOpen() public method

Open a connection to the database.
public pdoOpen ( )

postBack() public method

Check if page load is a post back.
public postBack ( )

randomString() public method

Generate a random string of the given length.
public randomString ( $length )

removeExtension() public method

Returns the supplied file name without an extension.
public removeExtension ( $fileName )

removeHtmlTags() public method

Remove all HTML tags from a string.
public removeHtmlTags ( $string )

sendEmail() public method

Send an email.
public sendEmail ( $to, $subject, $message )

stringToBoolean() public method

Return a boolean from a string.
public stringToBoolean ( $value )

updateSetting() public method

Updates the value for the specified setting name.
public updateSetting ( $name, $value )