lib/PHPRtfLite.php
public function setProperty($name, $value)
    {
        switch ($name) {
            case 'creatim':
            case 'revtim':
            case 'buptim':
            case 'printim':
                $year       = date('Y', $value);
                $month      = date('m', $value);
                $day        = date('d', $value);
                $hours      = date('H', $value);
                $minutes    = date('i', $value);

                $value = '\yr' . $year
                       . '\mo' . $month
                       . '\dy' . $day
                       . '\hr' . $hours
                       . '\min' . $minutes;
                break;
            default:
                $value = self::quoteRtfCode($value);
        }

        $this->_properties[$name] = $value;
    }
public function setProperty($name, $value)
    {
        switch ($name) {
            case 'creatim':
            case 'revtim':
            case 'buptim':
            case 'printim':
                $year       = date('Y', $value);
                $month      = date('m', $value);
                $day        = date('d', $value);
                $hours      = date('H', $value);
                $minutes    = date('i', $value);

                $value = '\yr' . $year
                       . '\mo' . $month
                       . '\dy' . $day
                       . '\hr' . $hours
                       . '\min' . $minutes;
                break;
            default:
                $value = self::quoteRtfCode($value);
        }

        $this->_properties[$name] = $value;
    }
public function setProperty ( $ name , $ value ) { switch ( $ name ) { case 'creatim' : case 'revtim' : case 'buptim' : case 'printim' : $ year = date ( 'Y' , $ value ) ; $ month = date ( 'm' , $ value ) ; $ day = date ( 'd' , $ value ) ; $ hours = date ( 'H' , $ value ) ; $ minutes = date ( 'i' , $ value ) ; $ value = '\yr' . $ year . '\mo' . $ month . '\dy' . $ day . '\hr' . $ hours . '\min' . $ minutes ; break ; default : $ value = self :: quoteRtfCode ( $ value ) ; } $ this -> _properties [ $ name ] = $ value ; }
sets document information properties

@param string $name Property of document. Possible properties: <br>
'title' => title of the document (value string)<br>
'subject' => subject of the document (value string)<br>
'author' => author of the document (value string)<br>
'manager' => manager of the document (value string)<br>
'company' => company of author (value string)<br>
'operator' => operator of document. Operator is a person who last made changes to the document. (value string) <br>
'category' => category of document (value string)<br>
'keywords' => keywords of document (value string)<br>
'doccomm' => comments of document (value string)<br>
'creatim' => creation time (value int) <br>
'revtim' => last revision time (value int) <br>
'buptim' => last backup time (value int) <br>
'printim' => last print time (value int) <br>
@param mixed $value Value
sets document information properties