Collaboration Class Reference

Inheritance diagram for Collaboration:
BackboneModel

List of all members.

Public Member Functions

 Collaboration ($data)
 getId ()
 getTitle ()
 getSector ()
 getNumber ()
 getCountry ()
 getPlanning ()
 getDesignDataCollection ()
 getAnalysisOfResults ()
 getExchangeKnowledge ()
 getUserKnowledge ()
 getOther ()
 getPersonName ()
 getPosition ()
 getEmail ()
 getCash ()
 getInKind ()
 getProjectedCash ()
 getProjectedInKind ()
 getExisted ()
 getExtra ()
 getKnowledgeUser ()
 getLeverage ()
 getYear ()
 getEndYear ()
 getAccessId ()
 getChanged ()
 getCreator ()
 getFileCount ()
 isAllowedToEdit ($me=null)
 create ()
 update ()
 getProjects ()
 delete ()
 toArray ()
 exists ()
 getCacheId ()
 getUrl ()

Static Public Member Functions

static newFromId ($id, $includeFiles=true)
static getAllCollaborations ($leverage=0)
static getByIds ($ids)

Public Attributes

 $id = null
 $title = ""
 $sector = ""
 $number = ""
 $country = ""
 $planning = ""
 $designDataCollection = ""
 $analysisOfResults = ""
 $exchangeKnowledge = ""
 $userKnowledge = ""
 $other = ""
 $personName = ""
 $position = ""
 $email = ""
 $cash = 0
 $inkind = 0
 $projectedCash = 0
 $projectedInkind = 0
 $year = YEAR
 $endYear = 0
 $files = array()
 $existed = ""
 $extra = array()
 $knowledgeUser = false
 $leverage = false
 $accessId = 0
 $changed = ""
 $projects = array()
 $projectsWaiting = true

Static Public Attributes

static $cache = array()

Member Function Documentation

Collaboration::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.

Collaboration::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.

Collaboration::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 Collaboration::getAllCollaborations ( leverage = 0  )  [static]

Returns all of the Collaborations

Returns:
array All of the Collaborations
static Collaboration::getByIds ( ids  )  [static]

Returns all the Collaborations with the given ids

Parameters:
array $ids The array of ids
Returns:
array The array of Collaborations
Collaboration::getCacheId (  ) 

Returns the id of this BackboneModel's cache

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

Reimplemented from BackboneModel.

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

Reimplemented from BackboneModel.

Collaboration::getProjects (  ) 

Returns an array or Projects which this Paper is related to

Returns:
array The Projects which this Paper is related to
Collaboration::isAllowedToEdit ( me = null  ) 

Returns whether or not this logged in user can edit this Collaboration

static Collaboration::newFromId ( id,
includeFiles = true 
) [static]

Returns a new Collaboration from the given id

Parameters:
integer $id The id of the Collaboration
boolean $includeFiles Whether to include the file uploads or not in the response
Returns:
Collaboration The Collaboration with the given id
Collaboration::toArray (  ) 

Generates and returns an array version of this BackboneModel

Returns:
array Returns an array version of this BackboneModel

Reimplemented from BackboneModel.

Collaboration::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.


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

Generated on 9 Jan 2025 for The Forum by  doxygen 1.6.1