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://ido.nu/kuma/2007/10/01/diff-onp-javascript-implementation/ | |
/* | |
Copyright (c) 2007, KUMAGAI Kentaro | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | |
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | |
3. Neither the name of this project nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. |
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 AppModel extends Model { | |
//Validation message i18n | |
function invalidate($field, $value = true){//$value example > __('Users Error' ,true) | |
parent::invalidate($field, $value); | |
$this->validationErrors[$field] = $value; | |
} | |
} |
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 AppModel extends Model { | |
var $withFieldName = false; | |
var $error_messages = array(); | |
function _setErrorMessageI18n() { | |
$this->error_messages['empty'] = __('Error Hoge',true); | |
} |
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 | |
require_once 'qdmail.php'; | |
class ExceptionNotifierComponent extends Object | |
{ | |
public $ERR_TYPE = array( | |
E_ERROR => 'FATAL', | |
E_WARNING => 'WARNING', | |
E_NOTICE => 'NOTICE', | |
E_STRICT => 'STRICT' |
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 | |
require_once 'qdmail.php'; | |
class ExceptionNotifierComponent extends Object | |
{ | |
public $ERR_TYPE = array( | |
E_ERROR => 'FATAL', | |
E_WARNING => 'WARNING', | |
E_NOTICE => 'NOTICE', | |
E_STRICT => 'STRICT' |
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
require 'formula' | |
class Canything < Formula | |
url 'https://github.com/keiji0/canything/zipball/master' | |
sha1 '3dc52483443211b19441f5f8732943475143cecf' | |
homepage 'https://github.com/keiji0/canything' | |
version '20130128' | |
def install | |
system "make" |