protected function validateEditDashboard()
    {
        $submitted = $this->setSubmitted('dashboard');

        foreach ($submitted as &$item) {
            $item['status'] = !empty($item['status']);
            $item['weight'] = intval($item['weight']);
        }

        $this->setSubmitted(null, $submitted);
    }
protected function validateEditDashboard()
    {
        $submitted = $this->setSubmitted('dashboard');

        foreach ($submitted as &$item) {
            $item['status'] = !empty($item['status']);
            $item['weight'] = intval($item['weight']);
        }

        $this->setSubmitted(null, $submitted);
    }
protected function validateEditDashboard ( ) { $ submitted = $ this -> setSubmitted ( 'dashboard' ) ; foreach ( $ submitted as & $ item ) { $ item [ 'status' ] = ! empty ( $ item [ 'status' ] ) ; $ item [ 'weight' ] = intval ( $ item [ 'weight' ] ) ; } $ this -> setSubmitted ( null , $ submitted ) ; }
Validates an array of submitted data
Validates an array of submitted data