Beispiel #1
0
 /**
  * Modifies the configuration.
  *
  * @param \SimpleXMLElement $xml
  * @return \Geissler\CSL\Date\DatePart
  */
 public function modify(\SimpleXMLElement $xml)
 {
     $this->formatting->modify($xml);
     $this->textCase->modify($xml);
     $this->affix->modify($xml);
     foreach ($xml->attributes() as $name => $value) {
         switch ($name) {
             case 'name':
                 $this->render->modify($xml);
                 break;
             case 'range-delimiter':
                 $this->delimiter = (string) $value;
                 break;
         }
     }
     return $this;
 }