PHP Class common, adsb-receiver

Afficher le fichier Open project: jprochazka/adsb-receiver Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public addSetting ( $name, $value )

cleanAndShortenString() public méthode

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

deleteSetting() public méthode

public deleteSetting ( $name )

extractString() public méthode

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

getAdminstratorName() public méthode

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

getBaseUrl() public méthode

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

getDatabaseSize() public méthode

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

getSetting() public méthode

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

paginateArray() public méthode

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

pdoOpen() public méthode

Open a connection to the database.
public pdoOpen ( )

postBack() public méthode

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

randomString() public méthode

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

removeExtension() public méthode

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

removeHtmlTags() public méthode

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

sendEmail() public méthode

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

stringToBoolean() public méthode

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

updateSetting() public méthode

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