Пример #1
0
  protected function addConstantsAndAttributes(&$script)
  {
    $boolean = $this->getTable()->getAttribute('isI18N') ? 'true' : 'false';
    $script .= "
	/** class enabled with symfony I18N functionality */
	const IS_I18N = $boolean;
";

    parent::addConstantsAndAttributes($script);
  }
 /**
  * Adds constant and variable declarations that go at the top of the class.
  * @param      string &$script The script will be modified in this method.
  * @see        addColumnNameConstants()
  */
 protected function addConstantsAndAttributes(&$script)
 {
     parent::addConstantsAndAttributes($script);
     $script .= "\n  /**\n\t* An array to hold the user selected columns\n\t*/\n  protected static \$selectedColumns = array();\n  ";
 }