Public Member Functions | |
Paper ($data) | |
getId () | |
getCCVId () | |
getBibTexId () | |
getCategory () | |
getDescription () | |
getTags () | |
getTitle () | |
getStatus () | |
getAccessId () | |
getCreatedBy () | |
getAccess () | |
isPublished () | |
getUrl () | |
getAuthors ($evaluate=true, $cache=true) | |
getAuthorNames () | |
generateOldSyncCache () | |
syncAuthors ($massSync=false) | |
belongsToProject ($project) | |
getProjects () | |
getTopProjects () | |
getProjectNames () | |
getJournal () | |
getUniversities () | |
isGrandRelated () | |
getDate () | |
getYear () | |
getType () | |
getCCVType () | |
getStructure () | |
getVenue () | |
getData ($field=null) | |
isDeleted () | |
getCitationFormat () | |
getCitation ($showStatus=true, $showPeerReviewed=true, $hyperlink=true, $wrapAuthors=false) | |
formatCitation ($matches, $showStatus=true, $showPeerReviewed=true, $hyperlink=true, $wrapAuthors=false) | |
getCompleteness () | |
create () | |
update () | |
delete () | |
toArray () | |
toBibTeX () | |
exists () | |
getCacheId () | |
Static Public Member Functions | |
static | newFromId ($id) |
static | newFromCCVId ($ccv_id) |
static | newFromBibTeXId ($bibtex_id, $title="") |
static | newFromIds ($ids, $onlyPublic=true) |
static | newFromTitle ($title, $category="%", $type="%", $status="%") |
static | getByIds ($ids) |
static | countByCategory ($category='all') |
static | getAllPapers ($project='all', $category='all', $grand='grand', $onlyPublic=true, $access='Public', $start=0, $count=9999999999) |
static | getAllPapersDuring ($project='all', $category='all', $grand='grand', $startRange=false, $endRange=false, $strict=true, $onlyPublic=true) |
static | generateIllegalAuthorsCache () |
static | generateProductProjectsCache () |
static | generateProductTagsCache () |
static | getAllTags () |
static | generateTopProductsCache () |
static | structure () |
static | getAllAuthors () |
static | getPublicationTypes () |
static | getCategoryTypes ($category) |
static | getAllMiscTypes ($category="%") |
Public Attributes | |
$id | |
$category | |
$description | |
$tags | |
$title | |
$type | |
$projects = array() | |
$date | |
$venue | |
$status | |
$authors | |
$data = array() | |
$lastModified | |
$authorsWaiting | |
$projectsWaiting | |
$deleted | |
$access_id = 0 | |
$access = "Forum" | |
$created_by = 0 | |
$ccv_id | |
$bibtex_id | |
Static Public Attributes | |
static | $structure = null |
static | $illegalAuthorsCache = array() |
static | $oldSyncCache = array() |
static | $cache = array() |
static | $dataCache = array() |
static | $productProjectsCache = array() |
static | $productTagsCache = array() |
static | $topProductsCache = array() |
Paper::belongsToProject | ( | $ | project | ) |
static Paper::countByCategory | ( | $ | category = 'all' |
) | [static] |
Paper::create | ( | ) |
Creates a new record in the DB for this BackboneModel
Reimplemented from BackboneModel.
Paper::delete | ( | ) |
Deletes the record in the DB for this BackboneModel
Reimplemented from BackboneModel.
Paper::exists | ( | ) |
Returns whether or not this BackboneModel exists or not
Reimplemented from BackboneModel.
Paper::generateOldSyncCache | ( | ) |
Generates a cache so that when a sync is being done it knows what the previous state was
Paper::getAccess | ( | ) |
Paper::getAccessId | ( | ) |
static Paper::getAllAuthors | ( | ) | [static] |
Returns an array of all the unique authors in the DB
static Paper::getAllPapers | ( | $ | project = 'all' , |
|
$ | category = 'all' , |
|||
$ | grand = 'grand' , |
|||
$ | onlyPublic = true , |
|||
$ | access = 'Public' , |
|||
$ | start = 0 , |
|||
$ | count = 9999999999 | |||
) | [static] |
Returns all of the Products in the database
Project | $project Specifies which project the returned Products should be associated with | |
string | $category Specifies which category the returned Products should be of('Publication', 'Artifact' etc.) | |
string | $grand Whether to include grand-only, non-grand-only or both | |
boolean | $onlyPublic Whether or not to only include Products with access_id = 0 | |
string | $access Whether to include 'Forum' or 'Public' access | |
integer | $start The index to start at | |
integer | $count The max number of Products to return |
static Paper::getAllPapersDuring | ( | $ | project = 'all' , |
|
$ | category = 'all' , |
|||
$ | grand = 'grand' , |
|||
$ | startRange = false , |
|||
$ | endRange = false , |
|||
$ | strict = true , |
|||
$ | onlyPublic = true | |||
) | [static] |
Returns all of the Papers in the database
Project | $project Specifies which project the returned papers should be associated with | |
string | $category Specifies which category the returned papers should be of('Publication', 'Artifact' etc.) | |
string | $grand Whether to include grand-only, non-grand-only or both | |
string | $startRange The start date | |
string | $endRange The end date | |
boolean | $strict whether to stick with the date range for everything(true), or show anything 'to appear' as well (false) | |
boolean | $onlyPublic Whether or not to only include Papers with access_id = 0 |
Paper::getAuthors | ( | $ | evaluate = true , |
|
$ | cache = true | |||
) |
Paper::getBibTexId | ( | ) |
static Paper::getByIds | ( | $ | ids | ) | [static] |
Paper::getCacheId | ( | ) |
Returns the id of this BackboneModel's cache
Reimplemented from BackboneModel.
Paper::getCCVType | ( | ) |
Paper::getCitation | ( | $ | showStatus = true , |
|
$ | showPeerReviewed = true , |
|||
$ | hyperlink = true , |
|||
$ | wrapAuthors = false | |||
) |
Return a string with a citation-like format
boolean | $showStatus Whether or not to show the publication status | |
boolean | $showPeerReviewed Whether or not to show the peer reviewed status | |
boolean | $hyperlink Whether or not to use hyperlinks in the citation |
Paper::getCompleteness | ( | ) |
Checks appropriate type of paper for requred venue, pages and publisher fields. If paper falls under category that requires these fields, it checks them for completeness, otherwise returns them as complete.
Paper::getCreatedBy | ( | ) |
Paper::getData | ( | $ | field = null |
) |
Paper::getDescription | ( | ) |
Paper::getId | ( | ) |
Paper::getJournal | ( | ) |
Paper::getProjects | ( | ) |
Paper::getTopProjects | ( | ) |
Paper::getUniversities | ( | ) |
Paper::getUrl | ( | ) |
Returns the url of this Paper's page
Paper::getVenue | ( | ) |
Paper::isDeleted | ( | ) |
Paper::isGrandRelated | ( | ) |
Paper::isPublished | ( | ) |
static Paper::newFromBibTeXId | ( | $ | bibtex_id, | |
$ | title = "" | |||
) | [static] |
static Paper::newFromCCVId | ( | $ | ccv_id | ) | [static] |
static Paper::newFromId | ( | $ | id | ) | [static] |
static Paper::newFromIds | ( | $ | ids, | |
$ | onlyPublic = true | |||
) | [static] |
Returns an array of new Papers from the given array of ids
array | $ids The array of ids | |
boolean | $onlyPublic Whether or not to only include Papers with access_id = 0 |
static Paper::structure | ( | ) | [static] |
Returns a php version of the Products.xml structure
Paper::syncAuthors | ( | $ | massSync = false |
) |
Paper::toArray | ( | ) |
Generates and returns an array version of this BackboneModel
Reimplemented from BackboneModel.
Paper::toBibTeX | ( | ) |
Exports this Paper as a BibTeX
Paper::update | ( | ) |
Updates the record in the DB for this BackboneModel
Reimplemented from BackboneModel.