This file contains 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 | |
/* | |
No Controller use | |
Sysfeedback::success("mensagem"); | |
Na View/Layout use | |
Sysfeedback::render(); | |
Isto irá mostrar todas as mensagens disponíveis | |
*/ |
This file contains 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
(function xboxConnector() { | |
// listen to changes in player | |
// wait for the duration appears | |
// validate | |
// if valid, scrobble | |
var working = false; | |
$(function() { | |
var $nowPlaying = $('.playerNowPlaying'), | |
$nowPlayingDuration = $('.playerDurationText'); |
This file contains 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 | |
// file: app/plugins/pesquisa/models/pesquisagrupoquestao.php | |
class Pesquisagrupoquestao extends AppModel { | |
var $name = 'Pesquisagrupoquestao'; | |
var $useTable = 'pesquisagruposquestoes'; | |
var $hasMany = array( | |
'Pesquisaquestao' => array( | |
'className' => 'Pesquisaquestao', | |
'foreignKey' => 'pesquisagrupoquestao_id', |
This file contains 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 Illuminate\Html; | |
use Illuminate\Routing\UrlGenerator; | |
use Illuminate\Session\Store as Session; | |
class FormBuilder { | |
/** | |
* The HTML builder instance. | |
* |
This file contains 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 Sigep\EloquentEnhancements\Traits; | |
use Illuminate\Database\Eloquent\Relations\BelongsToMany; | |
use Illuminate\Database\Eloquent\Relations\HasMany; | |
use Illuminate\Database\Eloquent\Relations\MorphMany; | |
use Illuminate\Database\Eloquent\Relations\HasManyThrough; | |
use Illuminate\Mail\Message; | |
use Illuminate\Support\MessageBag; |
This file contains 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 App\Models\Observers; | |
use Illuminate\Validation\Factory; | |
abstract class AbstractObserver | |
{ | |
/** | |
* The Validator instance |
This file contains 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 | |
protected function updateUniques(array $rules, Eloquent $model) | |
{ | |
foreach ($rules as $field => $rule) { | |
$rules[$field] = preg_replace( | |
"/unique\:([a-z_]+)/i", 'unique:$1,' . $field . ',' . $model->id, $rule | |
); | |
} |
This file contains 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
── js | |
├── app.js | |
├── bootstrap.js | |
├── components | |
│ └── componentX | |
│ ├── form.js | |
│ └── index.js | |
├── config.js | |
├── eventManager.js | |
├── helpers |
This file contains 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
/** | |
* Get element from obj by string path | |
* @param {string} path | |
* @param {Object} obj reference object. If not provided or invalid, window will be used | |
* @return {mixed} | |
*/ | |
App.helpers.object.getFlattened = function (path, obj) { | |
"use strict"; | |
if (typeof path !== "string") { |
This file contains 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 | |
class Xpto | |
{ | |
private $data = array ( | |
'a' => 'b', | |
); | |
public $b = '1'; |
OlderNewer