PHP Class Country

Inheritance: extends Eloquent
Show file Open project: sourcefabric/newscoop Class Usage Examples

Public Properties

Property Type Description
$m_columnNames
$m_dbTableName
$m_keyColumnNames
$m_keyIsAutoIncrement

Public Methods

Method Description
Country ( string $p_code = null, integer $p_languageId = null ) Constructor.
GetCountries ( integer $p_languageId = null, string $p_code = null, string $p_name = null, array $p_sqlOptions = null ) : array
GetNumCountries ( $p_languageId = null, $p_code = null, $p_name = null )
create ( $p_values = null ) constructor
delete ( ) fn create
getCode ( ) : string Get the two-letter code for this language.
getLanguageId ( ) : integer The unique ID of the language in the database.
getName ( ) : string Return the english name of this language.
setName ( string $p_value ) : boolean Set the name of the country.

Method Details

Country() public method

Constructor.
public Country ( string $p_code = null, integer $p_languageId = null )
$p_code string
$p_languageId integer

GetCountries() public static method

public static GetCountries ( integer $p_languageId = null, string $p_code = null, string $p_name = null, array $p_sqlOptions = null ) : array
$p_languageId integer
$p_code string
$p_name string
$p_sqlOptions array
return array

GetNumCountries() public static method

public static GetNumCountries ( $p_languageId = null, $p_code = null, $p_name = null )

create() public method

constructor
public create ( $p_values = null )

delete() public method

fn create
public delete ( )

getCode() public method

Get the two-letter code for this language.
public getCode ( ) : string
return string

getLanguageId() public method

The unique ID of the language in the database.
public getLanguageId ( ) : integer
return integer

getName() public method

Return the english name of this language.
public getName ( ) : string
return string

setName() public method

Set the name of the country.
public setName ( string $p_value ) : boolean
$p_value string
return boolean

Property Details

$m_columnNames public property

public $m_columnNames

$m_dbTableName public property

public $m_dbTableName

$m_keyColumnNames public property

public $m_keyColumnNames

$m_keyIsAutoIncrement public property

public $m_keyIsAutoIncrement