Permalink
Browse files

removed old unused php templates

  • Loading branch information...
1 parent 4481b86 commit 7ed80cc3d60d686249e2b5aae3f22d33a403cdd1 @mpscholten committed Oct 9, 2013
@@ -1,26 +0,0 @@
-
- /**
- * attribute to determine if this object has previously been saved.
- * @var boolean
- */
- protected $new = true;
-
- /**
- * attribute to determine whether this object has been deleted.
- * @var boolean
- */
- protected $deleted = false;
-
- /**
- * The columns that have been modified in current object.
- * Tracking modified columns allows us to only update modified columns.
- * @var array
- */
- protected $modifiedColumns = array();
-
- /**
- * The (virtual) columns that are added at runtime
- * The formatters can add supplementary columns based on a resultset
- * @var array
- */
- protected $virtualColumns = array();
@@ -1,93 +0,0 @@
-
-<?php if ($preSave):?>
- /**
- * Code to be run before persisting the object
- * @param ConnectionInterface $con
- * @return boolean
- */
- public function preSave(ConnectionInterface $con = null)
- {
- return true;
- }
-
-<?php endif?>
-<?php if ($postSave):?>
- /**
- * Code to be run after persisting the object
- * @param ConnectionInterface $con
- */
- public function postSave(ConnectionInterface $con = null)
- {
-
- }
-
-<?php endif?>
-<?php if ($preInsert):?>
- /**
- * Code to be run before inserting to database
- * @param ConnectionInterface $con
- * @return boolean
- */
- public function preInsert(ConnectionInterface $con = null)
- {
- return true;
- }
-
-<?php endif?>
-<?php if ($postInsert):?>
- /**
- * Code to be run after inserting to database
- * @param ConnectionInterface $con
- */
- public function postInsert(ConnectionInterface $con = null)
- {
-
- }
-
-<?php endif?>
-<?php if ($preUpdate):?>
- /**
- * Code to be run before updating the object in database
- * @param ConnectionInterface $con
- * @return boolean
- */
- public function preUpdate(ConnectionInterface $con = null)
- {
- return true;
- }
-
-<?php endif?>
-<?php if ($postUpdate):?>
- /**
- * Code to be run after updating the object in database
- * @param ConnectionInterface $con
- */
- public function postUpdate(ConnectionInterface $con = null)
- {
-
- }
-
-<?php endif?>
-<?php if ($preDelete):?>
- /**
- * Code to be run before deleting the object in database
- * @param ConnectionInterface $con
- * @return boolean
- */
- public function preDelete(ConnectionInterface $con = null)
- {
- return true;
- }
-
-<?php endif?>
-<?php if ($postDelete):?>
- /**
- * Code to be run after deleting the object in database
- * @param ConnectionInterface $con
- */
- public function postDelete(ConnectionInterface $con = null)
- {
-
- }
-
-<?php endif?>
@@ -1,61 +0,0 @@
-
-<?php if ($behaviorCallScript) :?>
- /**
- * Catches calls to undefined methods.
- *
- * Provides magic import/export method support (fromXML()/toXML(), fromYAML()/toYAML(), etc.).
- * Allows to define default __call() behavior if you overwrite __call()
- *
- * @param string $name
- * @param mixed $params
- *
- * @return array|string
- */
- public function __call($name, $params)
- {
- <?php echo $behaviorCallScript?>
-
- return $this->__parentCall($name, $params);
- }
-
-<?php endif?>
- /**
- * Derived method to catches calls to undefined methods.
- *
- * Provides magic import/export method support (fromXML()/toXML(), fromYAML()/toYAML(), etc.).
- * Allows to define default __call() behavior if you overwrite __call()
- *
- * @param string $name
- * @param mixed $params
- *
- * @return array|string
- */
- public function __<?php echo ($behaviorCallScript)? 'parentCall' : 'call'?>($name, $params)
- {
- if (0 === strpos($name, 'get')) {
- $virtualColumn = substr($name, 3);
- if ($this->hasVirtualColumn($virtualColumn)) {
- return $this->getVirtualColumn($virtualColumn);
- }
-
- $virtualColumn = lcfirst($virtualColumn);
- if ($this->hasVirtualColumn($virtualColumn)) {
- return $this->getVirtualColumn($virtualColumn);
- }
- }
-
- if (0 === strpos($name, 'from')) {
- $format = substr($name, 4);
-
- return $this->importFrom($format, reset($params));
- }
-
- if (0 === strpos($name, 'to')) {
- $format = substr($name, 2);
- $includeLazyLoadColumns = isset($params[0]) ? $params[0] : true;
-
- return $this->exportTo($format, $includeLazyLoadColumns);
- }
-
- throw new BadMethodCallException(sprintf('Call to undefined method: %s.', $name));
- }
Oops, something went wrong.

0 comments on commit 7ed80cc

Please sign in to comment.