6.X/traits/properties.php
/**
     * Set properties from a text file (can be obtained from a Smarty template with $lang and {{syn...}} applied)
     *
     * @param $code string Property codes followed by "equals" signs and property values, one property per line
     */
Set properties from a text file (can be obtained from a Smarty template with $lang and {{syn...}} applied)
@param $code string Property codes followed by "equals" signs and property values, one property per line
Set properties from a text file ( can be obtained from a Smarty template with $lang and {{ syn ... }} applied ) @param $code string Property codes followed by " equals " signs and property values one property per line
public function parse_properties($code)
    {
        $x = explode("\n", $code);
        foreach($x as $v){
            $v = trim($v);
            $xx = explode("=", $v);
            $code = trim($xx[0]);
            $value = trim($xx[1]);
            $this->page_properties[$code] = $value;
        }
    }
public function parse_properties ( $ code ) { $ x = explode ( " \n " , $ code ) ; foreach ( $ x as $ v ) { $ v = trim ( $ v ) ; $ xx = explode ( " = " , $ v ) ; $ code = trim ( $ xx [ 0 ] ) ; $ value = trim ( $ xx [ 1 ] ) ; $ this -> page_properties [ $ code ] = $ value ; } }
Set properties from a text file (can be obtained from a Smarty template with $lang and {{syn...}} applied)
 @param $code string Property codes followed by "equals" signs and property values, one property per line
Set properties from a text file ( can be obtained from a Smarty template with $lang and {{ syn ... }} applied ) @param $code string Property codes followed by " equals " signs and property values one property per line