public function postprocess () { parent::postprocess(); list( $this->data['weight'], $this->data['weight_type'] ) = Transform_String::round_bytes($this->data['weight']); }
public function postprocess () { parent::postprocess(); if (!empty($this->data['items']) && is_array($this->data['items'])) { foreach ($this->data['items'] as & $item) { if (is_object($item)) { $item->parent = $this; } } foreach ($this->data['items'] as & $item) { if (is_object($item) && is_callable(array($item, 'postprocess'))) { $item->postprocess(); } } } }