Grido@master
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Namespaces

  • Grido
    • Components
      • Actions
      • Columns
      • Filters
    • DataSources
    • PropertyAccessors
    • Translations

Classes

  • Grido\Translations\FileTranslator
 1 <?php
 2 
 3 /**
 4  * This file is part of the Grido (https://github.com/o5/grido)
 5  *
 6  * Copyright (c) 2011 Petr Bugyík (http://petr.bugyik.cz)
 7  *
 8  * For the full copyright and license information, please view
 9  * the file LICENSE.md that was distributed with this source code.
10  */
11 
12 namespace Grido;
13 
14 /**
15  * Helpers.
16  *
17  * @package     Grido
18  * @author      Josef Kříž <pepakriz@gmail.com>
19  */
20 class Helpers
21 {
22     /**
23      * @param string $name
24      * @return string
25      */
26     public static function formatColumnName($name)
27     {
28         return str_replace('.', '__', $name);
29     }
30 
31     /**
32      * @param string $name
33      * @return string
34      */
35     public static function unformatColumnName($name)
36     {
37         return str_replace('__', '.', $name);
38     }
39 }
40 
Grido@master API documentation generated by ApiGen