Public Member Functions | |
Person ($data) | |
toSimpleArray () | |
toSimpleJSON () | |
toArray () | |
create () | |
update () | |
delete () | |
exists () | |
getCacheId () | |
isAllowedToEdit ($person) | |
isAllowedToEditDemographics ($person) | |
getUser () | |
isLoggedIn () | |
getRegistration () | |
isMemberOf ($project) | |
isMemberOfDuring ($project, $start, $end) | |
getTimeOnProject ($project, $format="%d", $now="") | |
isThemeLeader () | |
isThemeCoordinator () | |
isThemeLeaderDuring ($startRange, $endRange) | |
isThemeCoordinatorDuring ($startRange, $endRange) | |
isThemeLeaderOf ($project) | |
isThemeCoordinatorOf ($project) | |
getId () | |
getName () | |
getRealName () | |
getEmail () | |
getEmployeeId () | |
getPhoneNumber () | |
getGender () | |
getNationality () | |
getStakeholder () | |
isStakeholder () | |
getEarlyCareerResearcher () | |
getAgencies ($delim=null) | |
getMitacs () | |
getCanadaResearchChair () | |
getTwitter () | |
getWebsite () | |
getLinkedIn () | |
getGoogleScholar () | |
getOrcid () | |
getScopus () | |
getResearcherId () | |
getOffice () | |
getUrl () | |
getPhoto ($cached=false) | |
getNameForPost () | |
splitName () | |
getFirstName () | |
getMiddleName () | |
getLastName () | |
getPrevFirstName () | |
getPrevLastName () | |
getHonorific () | |
getCorrespondenceLanguage () | |
getLanguages () | |
getAddresses () | |
getTelephones () | |
getReversedName () | |
getNameForForms ($sep= ' ') | |
getNameForProduct ($format=null) | |
getAliases () | |
setAliases ($aliases) | |
getProfile ($private=false) | |
getMovedOn () | |
getAllMovedOn () | |
getThesis ($guess=true) | |
getDegreeStartDate ($guess=true) | |
getDegreeReceivedDate ($guess=true) | |
getUniversity () | |
getUni () | |
getFaculty () | |
getDepartment () | |
getPosition () | |
getUniStart () | |
getUniEnd () | |
getPresentPosition () | |
getUniversityDuring ($startRange, $endRange) | |
getCurrentUniversities () | |
getUniversitiesDuring ($startRange, $endRange) | |
getPreviousUniversity () | |
getFirstUniversity () | |
getUniversities () | |
getKeywords ($delim=null) | |
setKeywords ($keywords) | |
getCRDC ($delim=null) | |
setCRDC ($keywords) | |
getGroups () | |
getRights () | |
getType () | |
getRoleString () | |
getRole ($role, $history=false) | |
getRoles ($history=false) | |
getRoleOn ($project, $year=null, $aliases=false) | |
getAllowedRoles () | |
getAllowedProjects () | |
getFirstRole () | |
getLastRole () | |
wasLastRole ($role) | |
wasLastRoleAtLeast ($role) | |
wasLastRoleAtMost ($role) | |
getRolesDuring ($startRange, $endRange) | |
getRolesOn ($date) | |
getSubRoles () | |
isSubRole ($subRole) | |
isSubRoleBefore ($subRole, $date) | |
isSubRoleSince ($subRole, $date) | |
getPersonProjects () | |
getPersonThemes () | |
getPersonUniversities () | |
getProjects ($history=false, $allowProposed=false) | |
getProjectsDuring ($start, $end, $allowProposed=false) | |
getRelationsDuring ($type='all', $startRange, $endRange) | |
getManagedPeople () | |
getRelations ($type='all', $history=false, $inverse=false) | |
getSimilarPeople () | |
getContributions () | |
getContributionsDuring ($year) | |
getMultimedia () | |
getRecordings () | |
isCandidate () | |
isActive () | |
isStudent () | |
isMe () | |
isBoardMod () | |
isRole ($role, $project=null) | |
isRoleOn ($role, $date, $project=null) | |
isRoleDuring ($role, $startRange, $endRange, $project=null) | |
isRoleAtLeastDuring ($role, $startRange, $endRange) | |
isRoleAtLeast ($role) | |
isRoleAtMost ($role) | |
isEpic () | |
isEpic2 () | |
getCreators () | |
getRequestedMembers () | |
getPeopleRelatedTo ($type) | |
getHQP ($history=false) | |
getHQPDuring ($startRange, $endRange) | |
getSupervisors ($history=false) | |
getSupervisorsDuring ($startRange, $endRange) | |
isSupervisor ($history=false) | |
relatedTo ($person, $relationship) | |
getSupervisorDates ($supervisor) | |
getDelegates () | |
isDelegateFor ($person) | |
getPapers ($category="all", $history=false, $grand='grand', $onlyPublic=true, $access='Forum') | |
getPapersAuthored ($category="all", $startRange=CYCLE_START, $endRange=CYCLE_START_ACTUAL, $includeHQP=false, $networkRelated=true) | |
getTopProductsLastUpdated () | |
getTopProducts () | |
getBibliographies () | |
getCoAuthors ($category="all", $history=false, $grand='grand', $onlyPublic=true, $access='Forum') | |
leadership ($history=false, $idsOnly=false, $type='') | |
leadershipDuring ($startRange, $endRange) | |
getLeadThemes () | |
getCoordThemes () | |
getThemeProjects () | |
getAllocatedAmount ($year, $project=null, $byProject=false) | |
getCCV () | |
isEvaluator ($year=YEAR) | |
getEvaluateSubs ($year=YEAR) | |
getEvaluates ($type, $year=YEAR, $class="Person") | |
isEvaluatorOf ($object, $type, $year=YEAR, $class="Person") | |
getEvaluators ($year=YEAR, $type='Researcher', $projId=0) | |
isAuthorOf ($paper) | |
isReceiverOf ($contribution) | |
getMetrics () | |
getBirthDate () | |
getPronouns () | |
getIndigenousStatus () | |
getDisabilityStatus () | |
getMinorityStatus () | |
getEthnicity () | |
Static Public Member Functions | |
static | newFromId ($id) |
static | newFromName ($name) |
static | newFromReversedName ($name) |
static | newFromEmail ($email) |
static | newFromUser ($user) |
static | newFromWgUser () |
static | newFromNameLike ($name) |
static | newFromAlias ($alias) |
static | cleanName ($name) |
static | generateAliasCache () |
static | generateNamesCache () |
static | generateRolesCache () |
static | generateLeaderCache () |
static | generateThemeLeaderCache () |
static | generateUniversityCache () |
static | generateAuthorshipCache () |
static | generateAllPeopleCache () |
static | getAllUniversities () |
static | getAllPositions () |
static | getAllFaculties () |
static | getAllDepartments () |
static | getDefaultUniversity () |
static | getDefaultPosition () |
static | getByIds ($ids) |
static | getAllStaff () |
static | getAllPeople ($filter=null, $idOnly=false) |
static | getAllPeopleDuring ($filter=null, $startRange, $endRange) |
static | getAllPeopleOn ($filter=null, $date) |
static | getAllCandidates ($filter=null) |
static | getAllCandidatesDuring ($filter=null, $startDate=false, $endDate=false) |
static | peopleWithRoleExists ($role) |
static | getAllMovedOnDuring ($startRange, $endRange) |
static | generateSubRolesCache () |
static | getAllEvaluates ($type, $year=YEAR, $class="Person") |
Public Attributes | |
$user = null | |
$name | |
$employeeId | |
$phone | |
$nationality | |
$stakeholder | |
$earlyCareerResearcher | |
$agencies | |
$mitacs | |
$canadaResearchChair | |
$gender | |
$pronouns | |
$photo | |
$website | |
$googleScholar | |
$orcid | |
$scopus | |
$researcherId | |
$office | |
$publicProfile | |
$privateProfile | |
$realname | |
$firstName | |
$lastName | |
$middleName | |
$prevFirstName | |
$prevLastName | |
$honorific | |
$language | |
$birthDate | |
$indigenousStatus | |
$minorityStatus | |
$disabilityStatus | |
$ethnicity | |
$projects | |
$university | |
$universityDuring | |
$groups | |
$roles | |
$rolesDuring | |
$candidate | |
$isEvaluator = array() | |
$hqps | |
$historyHqps | |
$contributions | |
$multimedia | |
$aliases = false | |
$roleHistory | |
$degreeReceived | |
$degreeStartDate | |
$movedOn | |
$thesis | |
$leadershipCache = array() | |
$themesCache = array() | |
$hqpCache = array() | |
$projectCache = array() | |
$evaluateCache = array() | |
Static Public Attributes | |
static | $cache = array() |
static | $rolesCache = array() |
static | $subRolesCache = array() |
static | $universityCache = array() |
static | $leaderCache = array() |
static | $themeLeaderCache = array() |
static | $aliasCache = array() |
static | $authorshipCache = array() |
static | $namesCache = array() |
static | $idsCache = array() |
static | $allPeopleCache = array() |
static | $facultyMap = array() |
static Person::cleanName | ( | $ | name | ) | [static] |
Removes certain characters from a person's name to help matching
string | $name The name to clean |
Person::create | ( | ) |
Creates a new record in the DB for this BackboneModel
Reimplemented from BackboneModel.
Person::delete | ( | ) |
Deletes the record in the DB for this BackboneModel
Reimplemented from BackboneModel.
Person::exists | ( | ) |
Returns whether or not this BackboneModel exists or not
Reimplemented from BackboneModel.
static Person::generateAliasCache | ( | ) | [static] |
Caches the resultset of the alis table for superfast access
static Person::generateAllPeopleCache | ( | ) | [static] |
Caches the partial resultset of the mw_user table
static Person::generateAuthorshipCache | ( | ) | [static] |
Caches the resultset of the product authors
static Person::generateLeaderCache | ( | ) | [static] |
Caches the resultset of the leaders
static Person::generateNamesCache | ( | ) | [static] |
Caches the resultset of the user table for superfast access
static Person::generateRolesCache | ( | ) | [static] |
Caches the resultset of the user roles table NOTE: This only caches the current roles, not the history
static Person::generateThemeLeaderCache | ( | ) | [static] |
Caches the resultset of the theme leaders
static Person::generateUniversityCache | ( | ) | [static] |
Caches the resultset of the user universities
Person::getAddresses | ( | ) |
Person::getAgencies | ( | $ | delim = null |
) |
Person::getAliases | ( | ) |
Returns an array of aliases for this Person
static Person::getAllCandidates | ( | $ | filter = null |
) | [static] |
Returns an array of People of the type $filter and are also candidates
string | $filter The role to filter by |
static Person::getAllCandidatesDuring | ( | $ | filter = null , |
|
$ | startDate = false , |
|||
$ | endDate = false | |||
) | [static] |
Returns an array of People of the type $filter and are also candidates
string | $filter The role to filter by |
static Person::getAllDepartments | ( | ) | [static] |
Returns an array of all Department names
static Person::getAllEvaluates | ( | $ | type, | |
$ | year = YEAR , |
|||
$ | class = "Person" | |||
) | [static] |
Returns all of the evaluation assignments
string | $type The type of assignment | |
string | $year The year for the assignments |
static Person::getAllFaculties | ( | ) | [static] |
Returns an array of all Faculty names
Person::getAllMovedOn | ( | ) |
Returns all of the moved on rows for when this HQP was inactivated
static Person::getAllMovedOnDuring | ( | $ | startRange, | |
$ | endRange | |||
) | [static] |
Returns the people who moved on between the given dates
string | $startRange The start date | |
string | $endRange The end date |
Person::getAllocatedAmount | ( | $ | year, | |
$ | project = null , |
|||
$ | byProject = false | |||
) |
Returns the allocated amount that this Person received for the specified $year and $project If no Project is specified, then the total amount for that year is returned. If the data is not in the DB Then it falls back to checking the uploaded revised budgets
int | $year The allocation year | |
Project | $project Which project this person received funding for | |
boolean | $byProject Whether or not to return an array index by project with each allocation amount |
static Person::getAllPeople | ( | $ | filter = null , |
|
$ | idOnly = false | |||
) | [static] |
Returns an array of People of the type $filter
string | $filter The role to filter by | |
boolean | $idOnly Whether or not to only include the id, rather than instantiating a Person object (may result in slightly different results!) |
static Person::getAllPeopleDuring | ( | $ | filter = null , |
|
$ | startRange, | |||
$ | endRange | |||
) | [static] |
Returns an array of People of the type $filter between $startRange and $endRange
string | $filter The role to filter by | |
string | $startRange The start date of the role | |
string | $endRange The end date of the role |
static Person::getAllPeopleOn | ( | $ | filter = null , |
|
$ | date | |||
) | [static] |
Returns an array of People of the type $filter
string | $filter The role to get ('all' if including everyone, even if on no project) | |
string | $date The date that the person was on the role $filter |
static Person::getAllPositions | ( | ) | [static] |
Returns an array of all Position names
static Person::getAllStaff | ( | ) | [static] |
Returns all the People who currently have at least the Staff role
static Person::getAllUniversities | ( | ) | [static] |
Returns an array of all University names
Person::getBibliographies | ( | ) |
Returns an array of this Person's Bibliographies
Person::getBirthDate | ( | ) |
static Person::getByIds | ( | $ | ids | ) | [static] |
Returns all the People with the given ids
array | $ids The array of ids |
Person::getCacheId | ( | ) |
Returns the id of this BackboneModel's cache
Reimplemented from BackboneModel.
Person::getCanadaResearchChair | ( | ) |
Person::getCCV | ( | ) |
Person::getCoAuthors | ( | $ | category = "all" , |
|
$ | history = false , |
|||
$ | grand = 'grand' , |
|||
$ | onlyPublic = true , |
|||
$ | access = 'Forum' | |||
) |
Returns an array of People who are authors of Products writted by this Person or their HQP
string | $category The category of Papers to get | |
boolean | $history Whether or not to include past publications (ie. written by past HQP) | |
string | $grand Whether to include 'grand' 'nonGrand' or 'both' Papers | |
boolean | $onlyPublic Whether or not to only include Papers with access_id = 0 | |
string | $access Whether to include 'Forum' or 'Public' access |
Person::getContributions | ( | ) |
Returns this Person's Contributions
Person::getContributionsDuring | ( | $ | year | ) |
Returns the Contributions this Person has made during the given year
string | $year The year of the Contribution |
Person::getCoordThemes | ( | ) |
Person::getCorrespondenceLanguage | ( | ) |
Person::getCRDC | ( | $ | delim = null |
) |
Person::getCreators | ( | ) |
static Person::getDefaultPosition | ( | ) | [static] |
Returns the default Position name
static Person::getDefaultUniversity | ( | ) | [static] |
Returns the default University name
Person::getDegreeReceivedDate | ( | $ | guess = true |
) |
Returns when this Person's degree ended (NOTE: This is a guesstimate)
Person::getDegreeStartDate | ( | $ | guess = true |
) |
Returns when this Person's degree started (NOTE: This is a guesstimate)
Person::getDelegates | ( | ) |
Person::getDepartment | ( | ) |
Returns the name of the Department that this Person is at
Person::getDisabilityStatus | ( | ) |
Person::getEarlyCareerResearcher | ( | ) |
Person::getEmail | ( | ) |
Person::getEmployeeId | ( | ) |
Person::getEthnicity | ( | ) |
Returns This Person's ethnicity
Person::getEvaluates | ( | $ | type, | |
$ | year = YEAR , |
|||
$ | class = "Person" | |||
) |
Person::getEvaluateSubs | ( | $ | year = YEAR |
) |
Person::getEvaluators | ( | $ | year = YEAR , |
|
$ | type = 'Researcher' , |
|||
$ | projId = 0 | |||
) |
Person::getFaculty | ( | ) |
Tries to map the department to a faculty
Person::getFirstName | ( | ) |
Person::getFirstRole | ( | ) |
Person::getGoogleScholar | ( | ) |
Returns the url of this Person's google scholar
Person::getGroups | ( | ) |
Person::getHonorific | ( | ) |
Person::getHQP | ( | $ | history = false |
) |
Returns this Person's HQP
mixed | $history Whether or not to include all HQP in history (can also be a specific date) |
Person::getHQPDuring | ( | $ | startRange, | |
$ | endRange | |||
) |
Returns this Person's HQP during the given dates
string | $startRange The start date | |
string | $endRange The end date |
Person::getId | ( | ) |
Returns the id of this Person. Returns 0 if the user doesn't exist or if is an HQP and the current user is not logged in
Reimplemented from BackboneModel.
Person::getIndigenousStatus | ( | ) |
Returns whether the Person identifies as indigenous
Person::getKeywords | ( | $ | delim = null |
) |
Person::getLanguages | ( | ) |
Returns an array of UserLanguage objects that this Person knows
Person::getLastName | ( | ) |
Person::getLastRole | ( | ) |
Person::getLeadThemes | ( | ) |
Person::getLinkedIn | ( | ) |
Returns the url of this Person's website
Person::getMiddleName | ( | ) |
Person::getMinorityStatus | ( | ) |
Person::getMitacs | ( | ) |
Person::getMovedOn | ( | ) |
Returns the moved on row for when this HQP was inactivated
Person::getMultimedia | ( | ) |
Person::getName | ( | ) |
Person::getNameForForms | ( | $ | sep = ' ' |
) |
Returns a name usable in forms ("First Last" usually)
Person::getNameForPost | ( | ) |
Person::getNationality | ( | ) |
Person::getPapers | ( | $ | category = "all" , |
|
$ | history = false , |
|||
$ | grand = 'grand' , |
|||
$ | onlyPublic = true , |
|||
$ | access = 'Forum' | |||
) |
Returns an array of Paper(s) authored or co-authored by this Person _or_ their HQP
string | $category The category of Paper to get | |
boolean | $history Whether or not to include past publications (ie. written by past HQP) | |
string | $grand Whether to include 'grand' 'nonGrand' or 'both' Papers | |
boolean | $onlyPublic Whether or not to only include Papers with access_id = 0 | |
string | $access Whether to include 'Forum' or 'Public' access |
Person::getPapersAuthored | ( | $ | category = "all" , |
|
$ | startRange = CYCLE_START , |
|||
$ | endRange = CYCLE_START_ACTUAL , |
|||
$ | includeHQP = false , |
|||
$ | networkRelated = true | |||
) |
Returns an array of Paper(s) authored/co-authored by this Person during the specified dates
string | $category The category of Paper to get | |
string | $startRange The starting date (start of the current reporting year if not specified) | |
string | $endRange The end date (end of the current reporting year if not specified) | |
boolean | $includeHQP Whether or not to include HQP in the result | |
boolean | $networkRelated Whether or not the products need to be associated with a project |
Person::getPhoneNumber | ( | ) |
Person::getPhoto | ( | $ | cached = false |
) |
Person::getPosition | ( | ) |
Returns the name of the Position/Title that this Person is
Person::getPresentPosition | ( | ) |
Used by CCVExport to determine the current position of active/inactive HQP
Person::getPrevFirstName | ( | ) |
Person::getPrevLastName | ( | ) |
Person::getProfile | ( | $ | private = false |
) |
Returns the text from this Person's profile
boolean | $private If tru, then it grabs the private version, otherwise it gets the public |
Person::getProjects | ( | $ | history = false , |
|
$ | allowProposed = false | |||
) |
Person::getProjectsDuring | ( | $ | start, | |
$ | end, | |||
$ | allowProposed = false | |||
) |
Person::getPronouns | ( | ) |
Returns This Person's pronouns
Person::getRealName | ( | ) |
Person::getRecordings | ( | ) |
Returns an array of objects representing this user's recordings
Person::getRegistration | ( | ) |
Returns when the User registered
Person::getRelations | ( | $ | type = 'all' , |
|
$ | history = false , |
|||
$ | inverse = false | |||
) |
Returns the Relationships this Person has
string | $type The type of Relationship | |
boolean | $history Whether or not to include the full history of Relationships | |
boolean | $inverse Changes which user 'this Person' is referring to (user1/user2). This only works when logged in at least Staff |
Person::getRelationsDuring | ( | $ | type = 'all' , |
|
$ | startRange, | |||
$ | endRange | |||
) |
Returns the Relationships this Person has between the given dates
string | $type The type of Relationship | |
string | $startRange The start date | |
string | $endRange The end date |
Person::getRequestedMembers | ( | ) |
Person::getReversedName | ( | ) |
Returns a this Person's name in the form "Last, First"
Person::getRights | ( | ) |
Person::getRole | ( | $ | role, | |
$ | history = false | |||
) |
Person::getRoleOn | ( | $ | project, | |
$ | year = null , |
|||
$ | aliases = false | |||
) |
Person::getRoles | ( | $ | history = false |
) |
Returns all of this Person's Roles
boolean | $history Whether or not to include all the history of roles | |
array | The Roles this Person has |
Person::getRolesDuring | ( | $ | startRange, | |
$ | endRange | |||
) |
Person::getRolesOn | ( | $ | date | ) |
Person::getRoleString | ( | ) |
Returns a string containing the full role information
Person::getSimilarPeople | ( | ) |
Returns an array of People who are 'similar' to this one
Person::getStakeholder | ( | ) |
Person::getSubRoles | ( | ) |
Person::getSupervisorDates | ( | $ | supervisor | ) |
Person::getSupervisors | ( | $ | history = false |
) |
Returns this Person's Supervisors
mixed | $history Whether or not to include all Supervisors in history (can also be a specific date) |
Person::getSupervisorsDuring | ( | $ | startRange, | |
$ | endRange | |||
) |
Returns this Person's Supervisors between the given dates
string | $startRange The start date | |
string | $endRange The end date |
Person::getTelephones | ( | ) |
Person::getThemeProjects | ( | ) |
Person::getThesis | ( | $ | guess = true |
) |
Person::getTimeOnProject | ( | $ | project, | |
$ | format = "%d" , |
|||
$ | now = "" | |||
) |
Returns the amount of time that this Person has been on the specified project
Project | $project The Project that the Person has been on | |
string | $format The format for the time (Defaults to number of days) | |
string | $now What time to compare the join date to (Defaults to now) |
Person::getTopProducts | ( | ) |
Returns the list of this Person's top products
Person::getTopProductsLastUpdated | ( | ) |
Returns when this Person's top products were last updated
Person::getTwitter | ( | ) |
Returns the handle of this Person's twitter account
Person::getType | ( | ) |
Returns one of the roles that this person is
Person::getUni | ( | ) |
Returns the name of the University that this Person is at
Person::getUniversities | ( | ) |
Person::getUniversitiesDuring | ( | $ | startRange, | |
$ | endRange | |||
) |
Person::getUniversity | ( | ) |
Returns the current University that this Person is at
Person::getUniversityDuring | ( | $ | startRange, | |
$ | endRange | |||
) |
Returns the last University that this Person was at between the given range
string | $startRange The start date to look at | |
string | $endRange The end date to look at |
Person::getUrl | ( | ) |
Returns the url of this Person's profile page
Person::getUser | ( | ) |
Person::getWebsite | ( | ) |
Returns the url of this Person's website
Person::isAllowedToEdit | ( | $ | person | ) |
Person::isAllowedToEditDemographics | ( | $ | person | ) |
Person::isAuthorOf | ( | $ | paper | ) |
Person::isBoardMod | ( | ) |
Person::isDelegateFor | ( | $ | person | ) |
Person::isEpic | ( | ) |
Person::isEvaluator | ( | $ | year = YEAR |
) |
Person::isLoggedIn | ( | ) |
Person::isMe | ( | ) |
Person::isMemberOf | ( | $ | project | ) |
Person::isMemberOfDuring | ( | $ | project, | |
$ | start, | |||
$ | end | |||
) |
Person::isReceiverOf | ( | $ | contribution | ) |
Returns whether or not this Person received the given Contribution
Contribution | $contribution The Contribution |
Person::isRole | ( | $ | role, | |
$ | project = null | |||
) |
Person::isRoleAtLeast | ( | $ | role | ) |
Person::isRoleAtLeastDuring | ( | $ | role, | |
$ | startRange, | |||
$ | endRange | |||
) |
Person::isRoleAtMost | ( | $ | role | ) |
Person::isRoleDuring | ( | $ | role, | |
$ | startRange, | |||
$ | endRange, | |||
$ | project = null | |||
) |
Returns whether this Person is the given role between the given dates (on the given optional project)
string | $role The role of this Person | |
string | $startRange The start date | |
string | $endRange The end date | |
Project | $project The Project the Person is a role on |
Person::isRoleOn | ( | $ | role, | |
$ | date, | |||
$ | project = null | |||
) |
Person::isStakeholder | ( | ) |
Person::isStudent | ( | ) |
Returns whether or not this person is a Student
Person::isSubRole | ( | $ | subRole | ) |
Person::isSupervisor | ( | $ | history = false |
) |
Person::isThemeCoordinator | ( | ) |
Person::isThemeCoordinatorOf | ( | $ | project | ) |
Person::isThemeLeader | ( | ) |
Person::isThemeLeaderOf | ( | $ | project | ) |
Person::leadership | ( | $ | history = false , |
|
$ | idsOnly = false , |
|||
$ | type = '' | |||
) |
Returns an array of Projects that this Person is a leader or co-leader of
boolean | $history Whether or not to include the entire leadership history | |
boolean | $idsOnly Whether or not to just return the ids of the Projects | |
string | $type The type of Project (ie. 'Administrative', 'Research') |
Person::leadershipDuring | ( | $ | startRange, | |
$ | endRange | |||
) |
static Person::newFromAlias | ( | $ | alias | ) | [static] |
static Person::newFromEmail | ( | $ | ) | [static] |
static Person::newFromId | ( | $ | id | ) | [static] |
static Person::newFromName | ( | $ | name | ) | [static] |
static Person::newFromNameLike | ( | $ | name | ) | [static] |
static Person::newFromReversedName | ( | $ | name | ) | [static] |
static Person::newFromUser | ( | $ | user | ) | [static] |
static Person::newFromWgUser | ( | ) | [static] |
static Person::peopleWithRoleExists | ( | $ | role | ) | [static] |
Returns whether atleast one user with the role exists
string | $role The role to check |
Person::relatedTo | ( | $ | person, | |
$ | relationship | |||
) |
Person::setAliases | ( | $ | aliases | ) |
Updates the Person's aliases
array | $aliases The array of aliases |
Person::setCRDC | ( | $ | keywords | ) |
Updates the keywords for this Person
array | $keywords The array of keywords |
Person::setKeywords | ( | $ | keywords | ) |
Updates the keywords for this Person
array | $keywords The array of keywords |
Person::splitName | ( | ) |
Returns an array of the name in the form ["first", "last"]
Person::toArray | ( | ) |
Generates and returns an array version of this BackboneModel
Reimplemented from BackboneModel.
Person::update | ( | ) |
Updates the record in the DB for this BackboneModel
Reimplemented from BackboneModel.
Person::wasLastRole | ( | $ | role | ) |
Person::wasLastRoleAtLeast | ( | $ | role | ) |
Person::wasLastRoleAtMost | ( | $ | role | ) |