| 1 | <?php  | 
            ||
| 7 | class Helper  | 
            ||
| 8 | { | 
            ||
| 9 | /**  | 
            ||
| 10 | * @param string $name  | 
            ||
| 11 | * @param string $path  | 
            ||
| 12 | * @return string  | 
            ||
| 13 | */  | 
            ||
| 14 | public function buildClassName( $name, $path = '' )  | 
            ||
| 22 | |||
| 23 | /**  | 
            ||
| 24 | * @param string $name  | 
            ||
| 25 | * @param string $prefix  | 
            ||
| 26 | * @return string  | 
            ||
| 27 | */  | 
            ||
| 28 | public function buildMethodName( $name, $prefix = 'get' )  | 
            ||
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * @param bool $toLowerCase  | 
            ||
| 35 | * @return string  | 
            ||
| 36 | */  | 
            ||
| 37 | public function getClassname( $toLowerCase = true )  | 
            ||
| 44 | |||
| 45 | /**  | 
            ||
| 46 | * get_current_screen() is unreliable because it is defined on most admin pages, but not all.  | 
            ||
| 47 | * @return WP_Screen|null  | 
            ||
| 48 | */  | 
            ||
| 49 | public function getCurrentScreen()  | 
            ||
| 57 | |||
| 58 | /**  | 
            ||
| 59 | * @param mixed $value  | 
            ||
| 60 | * @return array  | 
            ||
| 61 | */  | 
            ||
| 62 | public function toArray( $value )  | 
            ||
| 66 | }  | 
            ||
| 67 |