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 defined('SYSPATH') or die('No direct script access.'); | |
/** | |
* PDO database connection. | |
* | |
* @package Kohana/Database | |
* @category Drivers | |
* @author Kohana Team | |
* @copyright (c) 2008-2009 Kohana Team | |
* @license http://kohanaphp.com/license | |
*/ |
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 defined('SYSPATH') or die('No direct access allowed.'); | |
/** | |
* | |
* @author skowron-line | |
*/ | |
class DB extends Kohana_DB { | |
/** | |
* | |
* @var string cache driver | |
*/ |
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
var tab = function() | |
{ | |
this.fields = $('input:not(:disabled):not([type="hidden"]):not([readonly="readonly"]), a, select:not(:disabled)'); | |
this.current = 0; | |
} | |
$.extend(tab.prototype, { | |
forward: function() { | |
this.current++; | |
if(this.current > this.fields.length) { |
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($){ | |
$.fn.select2Dropdown = function(){ | |
var options = this.find('option'), | |
selected = this.find('option:selected').length == 0 | |
? options[0] | |
: this.find('option:selected'), | |
div = document.createElement('div'), | |
a = document.createElement('a'), | |
span = document.createElement('span'), | |
ul = document.createElement('ul'); |
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
#!/bin/bash | |
# sudo ./module.sh <module_name> | |
module=$1 | |
path[0]="modules/$module" | |
path[1]="modules/$module/classes" | |
path[2]="modules/$module/classes/controller" | |
path[3]="modules/$module/classes/model" | |
path[4]="modules/$module/views" | |
path[5]="modules/$module/views/$module" |
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
var s = $('.slider'), i = 0; | |
setInterval(function(){ | |
var o = $([]); | |
o = o.add(s[i]); | |
if(i === s.length - 1) { | |
i = -1; | |
} | |
i++; | |
o = o.add(s[i]); | |
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
/* | |
http://skowronline.pl/table/ | |
*/ | |
.ordinal { | |
text-align:right !important; | |
width: 25px; | |
padding-left:5px; | |
} | |
a.edit-item { | |
color: #FCCA8B; |
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 defined('SYSPATH') or die('No direct access allowed.'); | |
/** | |
* | |
* @author skowron-line | |
*/ | |
class DB extends Kohana_DB { | |
public static $_cache_driver = 'file'; | |
public static $_log_query = false; | |
private static $_transaction = false; |
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
$.fn.checkUncheck = function(options){ | |
var defaults = { | |
onCheck: jQuery.noop, | |
onUnCheck: jQuery.noop | |
}; | |
settings = $.extend({}, defaults, options); | |
$(this).each(function(){ | |
var e = $(this); | |
e.click(function(){ | |
if(e[0].checked) { |
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 | |
//Settlement | |
/** | |
* @ORM\ManyToOne(targetEntity="Certificate\LocalizationBundle\Entity\Localization", inversedBy="settlement") | |
*/ | |
private $localization; | |
//Localization | |
/** | |
* @ORM\OneToMany(targetEntity="Certificate\LocalizationBundle\Entity\LocalizationSettlement", mappedBy="localization", cascade={"persist"}) |
OlderNewer