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() |
Collaboration::create | ( | ) |
Creates a new record in the DB for this BackboneModel
Reimplemented from BackboneModel.
Collaboration::delete | ( | ) |
Deletes the record in the DB for this BackboneModel
Reimplemented from BackboneModel.
Collaboration::exists | ( | ) |
Returns whether or not this BackboneModel exists or not
Reimplemented from BackboneModel.
static Collaboration::getAllCollaborations | ( | $ | leverage = 0 |
) | [static] |
Returns all of the Collaborations
static Collaboration::getByIds | ( | $ | ids | ) | [static] |
Returns all the Collaborations with the given ids
array | $ids The array of ids |
Collaboration::getCacheId | ( | ) |
Returns the id of this BackboneModel's cache
Reimplemented from BackboneModel.
Collaboration::getId | ( | ) |
Reimplemented from BackboneModel.
Collaboration::getProjects | ( | ) |
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
integer | $id The id of the Collaboration | |
boolean | $includeFiles Whether to include the file uploads or not in the response |
Collaboration::toArray | ( | ) |
Generates and returns an array version of this BackboneModel
Reimplemented from BackboneModel.
Collaboration::update | ( | ) |
Updates the record in the DB for this BackboneModel
Reimplemented from BackboneModel.