{source}
<?php
class LastPublication{
public function getID(){
$db = JFactory::getDBO();
$query = $db->getQuery(true);
$query->select(‘id’);
$query->from(‘#__jresearch_member’);
$query->where(‘firstname = “Beatriz”‘);
$db->setQuery($query);
$result = $db->loadResult();
return $result;
}
public function getLatestPublications() {
$n = 0;
$db = JFactory::getDBO();
$latestPub = array();
$memberId = $this->getID();
$query = ‘SELECT p.* FROM ‘.$db->quoteName(‘#__jresearch_publication_internal_author’).’ ia JOIN ‘.$db->quoteName(‘#__jresearch_publication’).’ p WHERE ‘.$db->quoteName(‘p’).’.’.$db->quoteName(‘id’).’ = ‘.$db->quoteName(‘ia’).’.’.$db->quoteName(‘id_publication’).’ ‘.’ AND ‘.$db->quoteName(‘ia’).’.’.$db->quoteName(‘id_staff_member’).’ = ‘.$db->Quote($memberId).’ AND p.published = ‘.$db->Quote(‘1′).’ AND p.internal = ‘.$db->Quote(‘1′).’ ORDER BY ‘.$db->quoteName(‘p’).’.’.$db->quoteName(‘year’).’ DESC, STR_TO_DATE(p.’.$db->quoteName(‘month’).’, \’%M\’ ) DESC, ‘.’p.’.$db->quoteName(‘created’).’ DESC’;
if($n > 0){
$query .= ‘ LIMIT 0, ‘.$n;
}
$db->setQuery($query);
$result = $db->loadAssocList();
foreach($result as $row){
$latestPub[] = $row;
}
return $latestPub;
}
}
?>
{/source}
PhD Student
Statistics and Operations Research Area (265)
Research Lines:
- Cooperative Games
Contact Information
CV
Degree in Mathematics by the University of Santiago de Compostela (2018), and student of Master in Statistical Techniques. Currently, research technician in SiDOR group with the goal of developing my final project and PhD student in the Statistics and Operations Research program by the University of Vigo.
Last Publications
{source}
<?php
$lastP = new LastPublication();
$Publications = $lastP->getLatestPublications();
?>
<ul>
<?php
$count = 0;
foreach ($Publications as $p):
?>
<li><a href=”en/publications?view=publication&task=show&id=<?php echo $p[‘id’] ?>”><?php echo $p[‘title’]; ?></a></li>
<?php
if($count == 3){
break;
}
$count++;
endforeach;
?>
</ul>
{/source}