library/Garp/Model/Db/CropTemplate.php
public function fetchAll() {
        $templates = parent::fetchAll();
        $out = array();
        $id  = 1;
        foreach ($templates as $key => $value) {
            if (!array_key_exists('richtextable', $value) || !$value['richtextable']) {
                continue;
            }
            $out[] = array(
                'id'    => $id++,
                'name'  => $key,
                'w'     => !empty($value['w']) ? $value['w'] : null,
                'h'     => !empty($value['h']) ? $value['h'] : null,
                'crop'  => !empty($value['crop']) ? $value['crop'] : null,
                'grow'  => !empty($value['grow']) ? $value['grow'] : null
            );
        }
        return $out;
    }
public function fetchAll() {
        $templates = parent::fetchAll();
        $out = array();
        $id  = 1;
        foreach ($templates as $key => $value) {
            if (!array_key_exists('richtextable', $value) || !$value['richtextable']) {
                continue;
            }
            $out[] = array(
                'id'    => $id++,
                'name'  => $key,
                'w'     => !empty($value['w']) ? $value['w'] : null,
                'h'     => !empty($value['h']) ? $value['h'] : null,
                'crop'  => !empty($value['crop']) ? $value['crop'] : null,
                'grow'  => !empty($value['grow']) ? $value['grow'] : null
            );
        }
        return $out;
    }
public function fetchAll ( ) { $ templates = parent :: fetchAll ( ) ; $ out = array ( ) ; $ id = 1 ; foreach ( $ templates as $ key => $ value ) { if ( ! array_key_exists ( 'richtextable' , $ value ) || ! $ value [ 'richtextable' ] ) { continue ; } $ out [ ] = array ( 'id' => $ id ++ , 'name' => $ key , 'w' => ! empty ( $ value [ 'w' ] ) ? $ value [ 'w' ] : null , 'h' => ! empty ( $ value [ 'h' ] ) ? $ value [ 'h' ] : null , 'crop' => ! empty ( $ value [ 'crop' ] ) ? $ value [ 'crop' ] : null , 'grow' => ! empty ( $ value [ 'grow' ] ) ? $ value [ 'grow' ] : null ) ; } return $ out ; }
Fetch all entries

@return array
Fetch all entries