/**
  * Take arguments for running
  *
  * This method is called first, and it lets the action class get
  * all its arguments and validate them. It's also the time
  * to fetch any relevant data from the database.
  *
  * Action classes should run parent::prepare($args) as the first
  * line of this method to make sure the default argument-processing
  * happens.
  *
  * @param array $args $_REQUEST args
  *
  * @return boolean success flag
  */
 function prepare($args)
 {
     parent::prepare($args);
     $alumno = $this->trimmed('nickname');
     $group = $this->trimmed('nickgroup');
     $this->group = User_group::staticGet('nickname', $group);
     $this->alumno = Profile::staticGet('nickname', $alumno);
     $this->page = $this->arg('page') ? $this->arg('page') + 0 : 1;
     $ids = Grades::getNoticeFromUserInGroup($this->alumno->id, $this->group->id);
     $this->generarEstadisticas($ids);
     $this->notice = $this->getNotices(($this->page - 1) * NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1, $ids);
     common_set_returnto($this->selfUrl());
     return true;
 }