protected function resolveNonEditableWrapperHtmlOptions()
 {
     $parentOptions = parent::resolveNonEditableWrapperHtmlOptions();
     $columnLength = ArrayUtil::getArrayValue($this->params, static::TABLE_CSS_CLASSES_PARAM_KEY);
     if (!isset($columnLength)) {
         $columnLength = BuilderRowElement::MAX_COLUMN_WIDTH;
         $columnLength = NumberToWordsUtil::convert($columnLength);
     }
     $parentOptions['class'] .= " {$columnLength} columns";
     return $parentOptions;
 }
 protected function resolveColumnCssClassesByRowConfiguration()
 {
     $configuration = ArrayUtil::getNestedValue($this->properties, "backend['configuration']");
     if (!isset($configuration)) {
         return array();
     }
     $columnCssClasses = null;
     $columnKeysAndCssClasses = null;
     $columnKeys = array_keys($this->content);
     if (strpos($configuration, ':') == false) {
         $columnCount = intval($configuration);
         $columnWidth = NumberToWordsUtil::convert(static::MAX_COLUMN_WIDTH / $columnCount);
         $columnCssClasses = array(BuilderColumnElement::TABLE_CSS_CLASSES_PARAM_KEY => $columnWidth);
         $columnCssClasses = array_fill(0, count($columnKeys), $columnCssClasses);
     } else {
         $ratios = explode(':', $configuration);
         $total = array_sum($ratios);
         $unitRatioWidth = static::MAX_COLUMN_WIDTH / $total;
         foreach ($ratios as $ratio) {
             $width = NumberToWordsUtil::convert($ratio * $unitRatioWidth);
             $columnCssClasses[] = array(BuilderColumnElement::TABLE_CSS_CLASSES_PARAM_KEY => $width);
         }
     }
     $columnKeysAndCssClasses = array_combine($columnKeys, $columnCssClasses);
     return $columnKeysAndCssClasses;
 }
 protected function resolveFunctionNameFromTemplateName($name)
 {
     preg_match("~^(\\d+)~", $name, $columnCount);
     // Not Coding Standard
     if (isset($columnCount[1])) {
         $columnCount = NumberToWordsUtil::convert($columnCount[1]);
         $name = strtolower($columnCount . substr($name, strlen($columnCount[1])));
     }
     $name = 'make ' . strtolower($name);
     $name = preg_replace('/[^a-z ]/', '', $name);
     $name = StringUtil::camelize($name, false, ' ');
     return $name;
 }