src/CMSNav.php
public function getFieldList()
    {
        // Get additional fields of current structure
        $fields = dbQuery('\samson\cms\web\field\CMSField')
            ->join('\samson\cms\CMSNavField')
            ->cond('StructureID', $this->id)
            ->exec();

        // Create list view
        $items = '';

        // If structure has additional fields then add them to list
        if (sizeof($fields)) {
            foreach ($fields as $field) {
                $items .= m('structure')->view('form/field/field_item')->field($field)->structure($this)->output();
            }
        } else {
            // Add empty row
            $items = m('structure')->view('form/field/empty_field')->output();
        }

        // Return items view
        return $items;
    }
public function getFieldList()
    {
        // Get additional fields of current structure
        $fields = dbQuery('\samson\cms\web\field\CMSField')
            ->join('\samson\cms\CMSNavField')
            ->cond('StructureID', $this->id)
            ->exec();

        // Create list view
        $items = '';

        // If structure has additional fields then add them to list
        if (sizeof($fields)) {
            foreach ($fields as $field) {
                $items .= m('structure')->view('form/field/field_item')->field($field)->structure($this)->output();
            }
        } else {
            // Add empty row
            $items = m('structure')->view('form/field/empty_field')->output();
        }

        // Return items view
        return $items;
    }
public function getFieldList ( ) { // Get additional fields of current structure $ fields = dbQuery ( '\samson\cms\web\field\CMSField' ) -> join ( '\samson\cms\CMSNavField' ) -> cond ( 'StructureID' , $ this -> id ) -> exec ( ) ; // Create list view $ items = '' ; // If structure has additional fields then add them to list if ( sizeof ( $ fields ) ) { foreach ( $ fields as $ field ) { $ items .= m ( 'structure' ) -> view ( 'form/field/field_item' ) -> field ( $ field ) -> structure ( $ this ) -> output ( ) ; } } else { // Add empty row $ items = m ( 'structure' ) -> view ( 'form/field/empty_field' ) -> output ( ) ; } // Return items view return $ items ; }
Fet list of additional fields of current structure
@return string Html view of list
Fet list of additional fields of current structure