Diversity2018 Class Reference

Inheritance diagram for Diversity2018:
BackboneModel

List of all members.

Public Member Functions

 Diversity2018 ($data)
 getId ()
 getPerson ()
 getRaces ()
 getGenders ()
 getOrientations ()
 isComplete ()
 create ()
 update ()
 delete ()
 canView ()
 toArray ()
 exists ()
 getCacheId ()

Static Public Member Functions

static newFromId ($id)
static newFromUserId ($userId)
static getAllDiversity ()

Public Attributes

 $id = null
 $userId = ""
 $language = "en"
 $decline = ""
 $reason = ""
 $gender
 $orientation
 $birth = ""
 $indigenous = ""
 $disability = ""
 $disabilityVisibility = ""
 $minority = ""
 $race
 $racialized = ""
 $immigration = ""
 $comments = ""

Member Function Documentation

Diversity2018::create (  ) 

Creates a new record in the DB for this BackboneModel

Returns:
boolean Returns whether or not the creation was successful or not

Reimplemented from BackboneModel.

Diversity2018::delete (  ) 

Deletes the record in the DB for this BackboneModel

Returns:
boolean Returns whether or not the deletion was successful or not

Reimplemented from BackboneModel.

Diversity2018::exists (  ) 

Returns whether or not this BackboneModel exists or not

Returns:
boolean Returns whether or not this BackboneModel exists or not

Reimplemented from BackboneModel.

static Diversity2018::getAllDiversity (  )  [static]

Returns all Diversities available to a user

Returns:
Array An Array of Diversities
Diversity2018::getCacheId (  ) 

Returns the id of this BackboneModel's cache

Returns:
string Returns the id of this BackboneModel's cache

Reimplemented from BackboneModel.

Diversity2018::getId (  ) 
Returns:
int Returns the id of this BackboneModel

Reimplemented from BackboneModel.

static Diversity2018::newFromId ( id  )  [static]

Returns a new Diversity from the given id

Parameters:
id $id The id of the Diversity
Returns:
Diversity The Diversity with the given id
static Diversity2018::newFromUserId ( userId  )  [static]

Returns a new Diversity from the given user id

Parameters:
id $id The id of the Diversity
Returns:
Diversity The Diversity with the given id
Diversity2018::toArray (  ) 

Generates and returns an array version of this BackboneModel

Returns:
array Returns an array version of this BackboneModel

Reimplemented from BackboneModel.

Diversity2018::update (  ) 

Updates the record in the DB for this BackboneModel

Returns:
boolean Returns whether or not the update was successful or not

Reimplemented from BackboneModel.


Member Data Documentation

Diversity2018::$gender
Initial value:
 array(
        'values' => array(),
        'other' => "",
        'decline' => ""
    )
Diversity2018::$orientation
Initial value:
 array(
        'values' => array(),
        'other' => "",
        'decline' => ""
    )
Diversity2018::$race
Initial value:
 array(
        'values' => array(),
        'other' => "",
        'decline' => ""
    )

The documentation for this class was generated from the following file:

Generated on 9 Jan 2025 for The Forum by  doxygen 1.6.1