PHP 클래스 common, adsb-receiver

파일 보기 프로젝트 열기: jprochazka/adsb-receiver 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

addSetting() 공개 메소드

public addSetting ( $name, $value )

cleanAndShortenString() 공개 메소드

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

deleteSetting() 공개 메소드

public deleteSetting ( $name )

extractString() 공개 메소드

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

getAdminstratorName() 공개 메소드

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

getBaseUrl() 공개 메소드

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

getDatabaseSize() 공개 메소드

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

getSetting() 공개 메소드

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

paginateArray() 공개 메소드

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

pdoOpen() 공개 메소드

Open a connection to the database.
public pdoOpen ( )

postBack() 공개 메소드

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

randomString() 공개 메소드

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

removeExtension() 공개 메소드

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

removeHtmlTags() 공개 메소드

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

sendEmail() 공개 메소드

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

stringToBoolean() 공개 메소드

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

updateSetting() 공개 메소드

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