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
function setup() { | |
var myIO = { ... }; | |
myIO.on.success(Y.bind(this.onSuccess,this)); | |
Y.io(myIO.url,myIO); | |
} | |
function onSuccess(id,o,args) {...} |
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
var _getConnectValues = function(frm) { | |
var values = []; | |
frm.all('input,textarea').each(function(o){ | |
values.push(o.get('name') + '=' + o.get('value')); | |
}); | |
return values.join('&'); | |
} | |
/// use... |
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
YUI.add('echofin-modal',function(Y){ | |
var _modal = null | |
; | |
Y.Echofin.Modal = { | |
BUTTON_CANCEL : 'Cancel', | |
BUTTON_CLOSE : 'Close', | |
BUTTON_OK : 'Ok', | |
BUTTON_NO : 'No', | |
BUTTON_YES : 'Yes', |
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 | |
class dir | |
{ | |
protected $d; | |
public $path; | |
public function __construct($path) { | |
$this->path = $path; | |
$this->d = opendir($path); |
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->addElement(new Zend_Form_Element_Text('phone_number')); | |
$this->getElement('phone_number') | |
->setLabel('Phone Number') | |
->setRequired(true) | |
->addValidator('StringLength',false, 10) | |
->addValidator('Regex',false, array('/^[+]?[-\d() .]*$/i', 'message'=>'Please provide a valid Phone Number.')) | |
->setErrorMessages(array('')) | |
; |
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 | |
// Zend Form Snippet | |
// custom error message with Regex Validator | |
$this->addElement(new Zend_Form_Element_Text('phone_number')); | |
$this->getElement('phone_number') | |
->setLabel('Phone Number') | |
->setRequired(true) |
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
updateModalUrl : function(type, value) { | |
var url = Y.Echofin.Modal.Upload.getUrl(); | |
if(url.indexOf(type) < 0) { | |
url += '/' + type + '/' + value; | |
}else{ | |
var start = url.indexOf(type) + type.length + 1; | |
var end = url.indexOf('/',start); | |
var build = url.substring(0,start) + value + url.substring(end); | |
url = build | |
} |
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
_domready : function() { | |
ioUpload.method = 'POST'; | |
ioUpload.url = BASE_URL + 'properties/property-images/upload'; | |
ioRefresh.url = BASE_URL + 'properties/property-images/list-refresh'; | |
ioUpload.form = { | |
id:'uploadImage-form', | |
upload:true | |
}; | |
}, |
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 | |
/** | |
* Echofin_Model_Abstract | |
* | |
* @category Echofin | |
* @package Echofin_Model | |
*/ | |
abstract class Echofin_Model_Abstract { | |
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 | |
abstract class Echofin_Model_Mapper_Abstract | |
{ | |
protected $_dbTable; | |
protected $_dbTableDefault; | |
protected $_model; | |
protected $_model_name; | |