public function hideFields($fieldNameList)
    {

        if (is_array($fieldNameList)) {
            foreach ($fieldNameList as $name) {
                $this->field($name)->hide();
            }
        } else {
            $numargs = func_num_args();
            $fieldNames = func_get_args();

            for ($i = 0; $i < $numargs; $i++) {
                $this->field($fieldNames[$i])->hide();
            }
        }
    }
public function hideFields($fieldNameList)
    {

        if (is_array($fieldNameList)) {
            foreach ($fieldNameList as $name) {
                $this->field($name)->hide();
            }
        } else {
            $numargs = func_num_args();
            $fieldNames = func_get_args();

            for ($i = 0; $i < $numargs; $i++) {
                $this->field($fieldNames[$i])->hide();
            }
        }
    }
public function hideFields ( $ fieldNameList ) { if ( is_array ( $ fieldNameList ) ) { foreach ( $ fieldNameList as $ name ) { $ this -> field ( $ name ) -> hide ( ) ; } } else { $ numargs = func_num_args ( ) ; $ fieldNames = func_get_args ( ) ; for ( $ i = 0 ; $ i < $ numargs ; $ i ++ ) { $ this -> field ( $ fieldNames [ $ i ] ) -> hide ( ) ; } } }
Hide fields, useful if you want to keep the field in the database but not show on the curd page.
@param string[] $fieldNameList An array of field name(s).
Hide fields useful if you want to keep the field in the database but not show on the curd page .