Exemplo n.º 1
0
 public function recuperarTodosAceitosPorArea(WeLearn_Cursos_Area $area, $de = '', $ate = '', $count = 10)
 {
     if ($de != '') {
         $de = CassandraUtil::import($de)->bytes;
     }
     if ($ate != '') {
         $ate = CassandraUtil::import($ate)->bytes;
     }
     $idsSugestoes = array_keys($this->_sugestaoAceitaPorAreaCF->get($area->getId(), null, $de, $ate, true, $count));
     return $this->_recuperarPorIds($idsSugestoes);
 }
Exemplo n.º 2
0
 /**
  * @param WeLearn_Cursos_Area $area
  * @return int
  */
 public function recuperarQtdTotalPorArea(WeLearn_Cursos_Area $area)
 {
     return $this->_cursosPorAreaCF->get_count($area->getId());
 }
Exemplo n.º 3
0
 /**
  * (PHP 5 &gt;= 5.1.0)<br/>
  * Constructs the object
  * @link http://php.net/manual/en/serializable.unserialize.php
  * @param string $serialized <p>
  * The string representation of the object.
  * </p>
  * @return mixed the original value unserialized.
  */
 public function unserialize($serialized)
 {
     $arrayUsuario = unserialize($serialized);
     $area = new WeLearn_Cursos_Area();
     $area->preencherPropriedades($arrayUsuario['segmentoInteresse']['area']);
     $arrayUsuario['segmentoInteresse']['area'] = $area;
     $segmento = new WeLearn_Cursos_Segmento();
     $segmento->preencherPropriedades($arrayUsuario['segmentoInteresse']);
     $arrayUsuario['segmentoInteresse'] = $segmento;
     $configuracao = new WeLearn_Usuarios_ConfiguracaoUsuario($arrayUsuario['configuracao']);
     $arrayUsuario['configuracao'] = $configuracao;
     if (isset($arrayUsuario['imagem']) && is_array($arrayUsuario['imagem'])) {
         $imagem = new WeLearn_Usuarios_ImagemUsuario($arrayUsuario['imagem']);
         $arrayUsuario['imagem'] = $imagem;
     } else {
         unset($arrayUsuario['imagem']);
     }
     $this->__construct($arrayUsuario);
     $this->_nivelAcesso = $arrayUsuario['nivelAcesso'];
 }
Exemplo n.º 4
0
 /**
  * @param array|null $dados
  * @return WeLearn_DTO_IDTO
  */
 public function criarNovo(array $dados = null)
 {
     $area = new WeLearn_Cursos_Area();
     $area->preencherPropriedades($dados);
     return $area;
 }