Source for file jFormsControlOutput.class.php

Documentation is available at jFormsControlOutput.class.php

  1. <?php
  2. /**
  3. @package     jelix
  4. @subpackage  forms
  5. @author      Laurent Jouanneau
  6. @contributor Thomas
  7. @copyright   2006-2008 Laurent Jouanneau, 2009 Thomas
  8. @link        http://www.jelix.org
  9. @licence     http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
  10. */
  11.  
  12. /**
  13.  *
  14.  * @package     jelix
  15.  * @subpackage  forms
  16.  */
  17. class jFormsControlOutput extends jFormsControl {
  18.     public $type='output';
  19.  
  20.     function setValueFromRequest($request{
  21.     }
  22.  
  23.     public function check(){
  24.         return null;
  25.     }
  26.     
  27.     function setDataFromDao($value$daoDatatype{
  28.         if($this->datatype instanceof jDatatypeLocaleDateTime
  29.             && $daoDatatype == 'datetime'{
  30.             if($value != ''{
  31.                 $dt new jDateTime();
  32.                 $dt->setFromString($valuejDateTime::DB_DTFORMAT);
  33.                 $value $dt->toString(jDateTime::LANG_DTFORMAT);
  34.             }
  35.         }elseif($this->datatype instanceof jDatatypeLocaleDate
  36.                 && $daoDatatype == 'date'{
  37.             if($value != ''{
  38.                 $dt new jDateTime();
  39.                 $dt->setFromString($valuejDateTime::DB_DFORMAT);
  40.                 $value $dt->toString(jDateTime::LANG_DFORMAT);
  41.             }
  42.         }
  43.         $this->setData($value);
  44.     }
  45. }

Documentation generated on Thu, 22 Mar 2012 22:16:01 +0100 by phpDocumentor 1.4.3