Skip to content
Snippets Groups Projects
Commit 64f1a73d authored by Tim Steiner's avatar Tim Steiner
Browse files

Updates for ZF-0.9.3 Compatibility

DB_Table_Row_DataType added
Support for Linking Tables in DB_Table_Relation_HasMany
parent 134c4e7a
Branches
Tags
No related merge requests found
Showing with 59 additions and 21 deletions
......@@ -12,7 +12,6 @@
* @since File available since Release 0.0.1
*/
require_once('Zend.php');
Zend_Loader::loadClass('Nmc_Image');
/**
......
......@@ -11,8 +11,6 @@
* @since File available since Release 0.0.1
*/
require_once('Zend.php');
/**
* LDAP Class
*
......
......@@ -11,8 +11,6 @@
* @since File available since Release 0.0.1
*/
require_once('Zend.php');
/**
* NMC LDAP Exception
*
......
......@@ -11,7 +11,6 @@
* @since File available since Release 0.0.1
*/
require_once('Zend.php');
Zend_Loader::loadClass('Zend_Filter');
Zend_Loader::loadClass('Nmc_Math_Exception');
......
<?php
require_once('Zend.php');
Zend_Loader::loadClass('Zend_Db_Table');
class Nmc_Model_AclGroups extends Zend_Db_Table
{
}
?>
\ No newline at end of file
<?php
require_once('Zend.php');
Zend_Loader::loadClass('Zend_Db_Table');
class Nmc_Model_AclOthers extends Zend_Db_Table
......
<?php
require_once('Zend.php');
Zend_Loader::loadClass('Zend_Db_Table');
class Nmc_Model_AclUsers extends Zend_Db_Table
......
......@@ -11,8 +11,6 @@
* @since File available since Release 0.0.1
*/
require_once('Zend.php');
interface Nmc_Model_UserInterface
{
public function getId();
......
......@@ -11,8 +11,6 @@
* @since File available since Release 0.0.1
*/
require_once('Zend.php');
/**
* Nmc_Semaphore
*
......
......@@ -11,7 +11,6 @@
* @since File available since Release 0.0.1
*/
require_once('Zend.php');
require_once 'Nmc/Model/UserInterface.php';
/**
......
......@@ -11,8 +11,6 @@
* @since File available since Release 0.0.1
*/
require_once('Zend.php');
/**
* NMC_View
*
......@@ -39,6 +37,10 @@ class Nmc_View extends Zend_View {
function __construct($config = array())
{
parent::__construct($config);
$this->addHelperPath(FRAMEWORK_PATH . DIRECTORY_SEPARATOR . 'library'
. DIRECTORY_SEPARATOR . 'Nmc'
. DIRECTORY_SEPARATOR . 'View'
. DIRECTORY_SEPARATOR . 'Helper', 'Nmc_View_Helper_');
$this->addScriptPath(APPLICATION_PATH . DIRECTORY_SEPARATOR . 'views');
$this->css_files = array();
$this->css_files[] = '/css/index.css';
......
<?php
class Nmc_View_Helper_FormSelectDay extends Zend_View_Helper_FormSelect
{
public function formSelectDay($name, $value = null, $attribs = null, $listsep = "<br />\n")
{
$options = array();
$options[-1] = '--Day--';
for ($i = 1; $i <= 31; $i++) {
$options[$i] = $i;
}
return parent::formSelect($name, $value, $attribs, $options, $listsep);
}
}
<?php
class Nmc_View_Helper_FormSelectMonth extends Zend_View_Helper_FormSelect
{
public function formSelectMonth($name, $value = null, $attribs = null, $listsep = "<br />\n")
{
$options = array(
-1 => '--Month--',
1 => 'January',
2 => 'February',
3 => 'March',
4 => 'April',
5 => 'May',
6 => 'June',
7 => 'July',
8 => 'August',
9 => 'September',
10 => 'October',
11 => 'November',
12 => 'December'
);
return parent::formSelect($name, $value, $attribs, $options, $listsep);
}
}
<?php
class Nmc_View_Helper_FormSelectYear extends Zend_View_Helper_FormSelect
{
public function formSelectYear($name, $value = null, $attribs = null, $listsep = "<br />\n")
{
$options = array();
$options[-1] = '--Year--';
for ($i = 2006; $i <= date('Y'); $i++) {
$options[$i] = $i;
}
return parent::formSelect($name, $value, $attribs, $options, $listsep);
}
}
<?php
require_once('Zend.php');
class Nmc_View_Oss
{
......
<?php
require_once('Zend.php');
Zend_Loader::loadClass('Zend_View');
class Nmc_View_Unl extends Zend_View
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment