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
angular.module("starter").factory("assetsRepository", function ($q, entity) { | |
var _getDB = function () { | |
return openDatabase("my.db", '1.0', 'description', 2* 1024 * 1024); | |
}; | |
var _deleteTable = function () { | |
_getDB().transaction(function (tx) { | |
tx.executeSql("DROP TABLE IF EXISTS assets"); | |
}); | |
}; |
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 'library/Zend/Loader/StandardAutoloader.php'; | |
$loader = new \Zend\Loader\StandardAutoloader(['autoregister_zf' => true]); | |
$loader->register(); | |
$email = new Zend\InputFilter\Input('email'); | |
$email->getValidatorChain() | |
->attach(new Zend\Validator\EmailAddress()); | |
$password = new Zend\InputFilter\Input('password'); |