private function Row($row)
 {
     $row_object = new WPDD_layout_row($row['name'], $row['cssClass'], $row['editorVisualTemplateID'], isset($row['layout_type']) ? $row['layout_type'] : '', isset($row['cssId']) ? $row['cssId'] : '', isset($row['additionalCssClasses']) ? $row['additionalCssClasses'] : '', isset($row['tag']) ? $row['tag'] : '', isset($row['mode']) ? $row['mode'] : 'normal');
     if (isset($row['Cells'])) {
         foreach ($row['Cells'] as $cell) {
             if (isset($cell['row_divider'])) {
                 $cell['width'] *= $cell['row_divider'];
             }
             $row_object->add_cell($this->create_cell($cell));
         }
     }
     return $row_object;
 }
 function create_layout($width, $type)
 {
     $layout = new WPDD_layout($width);
     $row = new WPDD_layout_row('1', '', '', $type);
     for ($i = 0; $i < $width; $i++) {
         $cell = new WPDD_layout_spacer('', 1);
         $row->add_cell($cell);
     }
     $layout->add_row($row);
     $layout = $layout->get_as_array();
     $layout['width'] = $width;
     return $layout;
 }