Skip to content

Instantly share code, notes, and snippets.

View ixti's full-sized avatar
😂
forever blowing bubbles

Alexey Zapparov ixti

😂
forever blowing bubbles
View GitHub Profile
<?php
class IndexController extends Zend_Controller_Action
{
public function indexAction()
{}
public function demoAction()
{
From b24ce0376834e34f015cfd9cfa683fbb346aef35 Mon Sep 17 00:00:00 2001
From: Aleksey V. Zapparov <...>
Date: Mon, 15 Mar 2010 00:28:52 +0100
Subject: [PATCH] CRE PCI CE Removed annoying ads
---
includes/application_bottom.php | 1 -
includes/template_application_top.php | 21 ---------------------
2 files changed, 0 insertions(+), 22 deletions(-)
From 75567145b5472d2760680a1e133e568331a2da8b Mon Sep 17 00:00:00 2001
From: Aleksey V. Zapparov <...>
Date: Tue, 23 Mar 2010 11:12:16 +0100
Subject: [PATCH] Dirty fix.
- Workaround for serial number validation
- Removed ask for serial number (fixed SN = FREE-AS-IN-FREEDOM)
- Removed annoying ads from top of admin's interface
---
admin/includes/classes/sss_verify.php | 45 +++++-----------------------
<?php
$arr = array(
array(
'nid' => 1,
'parentID' => 0
),
array(
'nid' => 2,
'parentID' => 1
<?php
// form initialization
$form->addElement('zipAndTheCity', 'origin');
// some work with form etc.
$zip = $form->getElement('origin')->getValue('zip');
$city = $form->getElement('origin')->getValue('city');
?>
/*!
* maxRange extension for $.datepick of Keith Wood (kbwood{at}iinet.com.au)
* http://keith-wood.name/datepick.html
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
CREATE TABLE IF NOT EXISTS `my_table` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ;
INSERT INTO `automobili_news` (`id`, `title`) VALUES
(1, '3858f62230ac3c915f300c664312c63f'),
(2, 'da1c45547c18497b29ef722481693066'),
(3, '4874f7aef9eeea0098e7a7ca7d01e374'),
<?php
// via wiping out possible options of validator
$validate = new Zend_Validate_Callback('is_numeric');
$validate ->setOptions(array());
// via create_function() callback
$callback = create_function('$v', 'return is_numeric($v);');
$validate = new Zend_Validate_Callback($callback);
<?php
class SomeModel extends Doctrine_Record
{
public function setTableDefinition()
{
// ...
$this->hasColumn('some_date', 'date', null, array('notnull' => true, 'notblank' => true));
// ...
}
<?php // file: library/App/Record/Filter/Date.php
/** Doctrine_Record_Filter */
require_once 'Doctrine/Record/Filter.php';
class App_Record_Filter_Date extends Doctrine_Record_Filter
{
protected $_format = null;
protected $_fields = array();