protected function init()
 {
     $this->getDocument()->addLog(sprintf('Processing column "%s.%s"', $this->getTable()->getRawTableName(), $this->getColumnName()));
     // iterate on links to other wb objects
     foreach ($this->node->xpath("link") as $key => $node) {
         $attributes = $node->attributes();
         $key = (string) $attributes['key'];
         $this->links->set((string) $attributes['key'], (string) $node[0]);
     }
 }
 protected function init()
 {
     $this->links = new RegistryHolder();
     // iterate on column configuration
     foreach ($this->node->xpath('value') as $key => $node) {
         $attributes = $node->attributes();
         $this->parameters->set((string) $attributes['key'], (string) $node[0]);
     }
     // iterate on links to other wb objects
     foreach ($this->node->xpath('link') as $key => $node) {
         $attributes = $node->attributes();
         $key = (string) $attributes['key'];
         $this->links->set((string) $attributes['key'], (string) $node[0]);
     }
 }
 /**
  * Populate parameters from XML node.
  */
 protected function populateParameters()
 {
     $this->parameters->clear();
     if ($this->hasParameters() && $this->node) {
         foreach ($this->node->value as $key => $node) {
             $attributes = $node->attributes();
             switch ((string) $attributes['type']) {
                 case 'list':
                     $value = array();
                     foreach ($node->children() as $c) {
                         $value[] = (string) $c;
                     }
                     break;
                 case 'int':
                     if (strlen($value = (string) $node[0])) {
                         $value = (int) $value;
                     } else {
                         $value = null;
                     }
                     break;
                 default:
                     $value = (string) $node[0];
                     break;
             }
             $this->parameters->set((string) $attributes['key'], $value);
         }
     }
 }
 protected function init()
 {
     $this->links = new RegistryHolder();
     // iterate on column configuration
     foreach ($this->node->xpath("value") as $key => $node) {
         $attributes = $node->attributes();
         // Convert a list to an array
         if ('list' === (string) $attributes['type']) {
             $value = array();
             for ($i = 0; $i < $node->count(); $i++) {
                 $value[$i] = (string) $node[$i]->value;
             }
         } else {
             $value = (string) $node[0];
         }
         $this->parameters->set((string) $attributes['key'], $value);
     }
     // iterate on links to other wb objects
     foreach ($this->node->xpath("link") as $key => $node) {
         $attributes = $node->attributes();
         $key = (string) $attributes['key'];
         $this->links->set((string) $attributes['key'], (string) $node[0]);
     }
 }