Пример #1
0
 /**
  * @see UserGroupColiumn::getTemplateVarsFromRowColumn()
  */
 function getTemplateVarsFromRow($row)
 {
     $templateVars = parent::getTemplateVarsFromRow($row);
     // Retrieve the monograph file.
     $monographFile =& $this->getMonographFile($row);
     // By default we return an empty cell.
     $templateVars = array('status' => '');
     // Find out whether the uploader of the current file
     // belongs to the user group displayed in this column.
     $uploaderUserGroup =& $this->getUserGroup();
     if ($uploaderUserGroup->getId() == $monographFile->getUserGroupId()) {
         // Show that this column's user group is the uploading
         // user group.
         $templateVars = array('status' => 'uploaded');
     }
     return $templateVars;
 }