This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Controlla se l'annuncio è di un determinato utente | |
* | |
* @param integer $adId Id annuncio | |
* @param integer $userId Id utente | |
* @return boolean L'annuncio è dell'utente? | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Filtro per il recupero degli annunci che appartengono a determinati servizi | |
* | |
* @param Query $query | |
* @param array $options | |
* @return Query | |
*/ | |
public function findServices(Query $query, array $options) | |
{ | |
if (empty($options['matching'])) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Recupero numero totale degli annunci di ogni settore. | |
* Di default vengono restituiti i dati della tabella tags ed un campo aggiuntivo | |
* chiamato `total_ads` che indica il numero totale degli annunci associati a | |
* quel singolo tag settoriale. | |
* | |
* Opzioni utilizzabili: | |
* | |
* - tagGroupId: (default: 1) E' il gruppo di associazione con la tabella Ads | |
* - scope: (default: 1) E' lo scope che identifica tutti i tag settoriali |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$this->assertEquals('Questo è un testo di prova su più righe. | |
Seconda | |
Terza | |
Quarta | |
Testo finale', | |
trim($this->tika->getText($this->fixture . 'text.pdf')) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(document).ready(function() { | |
$(document).on("page:update", function() { | |
var config = { | |
'.chosen-select' : {}, | |
'.chosen-select-deselect' : {allow_single_deselect:true}, | |
'.chosen-select-no-single' : {disable_search_threshold:10}, | |
'.chosen-select-no-results': {no_results_text:'Oops, nothing found!'}, | |
'.chosen-select-width' : {width:"95%"} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$text = $this->getMockBuilder('\Cake\Utility\Text') | |
->getMock(); | |
$text->method('uuid') | |
->willReturn('ciao'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$table = $this->table('ads'); | |
$table | |
->renameColumn('url', 'slug') | |
->update(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace UserTags\View\Helper; | |
use Cake\View\Helper; | |
use Cake\View\View; | |
use UserTags\Traits\TagTrait; | |
/** | |
* Tag helper | |
*/ |