Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Model\Cursos;
- use EmagLib\Search\Search,
- EmagLib\Search\Restrictions\WebRestriction,
- EmagLib\Search\Restrictions\LocalRestriction;
- /**
- * The cursos standard search. This example, uses the PHP 5.4 traits to apply
- * restrictions to the Search.
- *
- * @Search(facet="true", highlight="true", start="0", rows="20", resultEntity="Model\Cursos\Curso")
- * @SearchParam(name="f.titulo.h1.fragsize", value="...")
- * @SearchParam(name="f.programa.h1.fragsize", value="...")
- * @SearchParam(name="f.programa.h1.snippets", value="...")
- * @SearchParam(name="f.snippet.h1.fragsize", value="...")
- */
- class StandardCursosSearch implements Search
- {
- use WebRestriction, LocalRestriction;
- /**
- * The category id
- *
- * @var int
- * @Filter(mapsTo="idCateg")
- * @FacetField
- */
- public $idCategoria;
- /**
- * The Curso's skill level. (If we don't provide a "mapTo" attribute, the search manager will map to "nivelCurso"
- *
- * @var int
- * @Filter
- */
- public $nivelCurso;
- }
Add Comment
Please, Sign In to add comment