Subversion-Projekte lars-tiefland.shop_ns

Revision

Revision 46 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 46 Revision 50
Zeile 101... Zeile 101...
101
                        }
101
                        }
102
                    }
102
                    }
103
                    $this->thumbs = $thumbs;
103
                    $this->thumbs = $thumbs;
104
                }
104
                }
105
                $this->instantConfirm = "/index.php?basket=true&item=$this->id&menge=1";
105
                $this->instantConfirm = "/index.php?basket=true&item=$this->id&menge=1";
-
 
106
                $this->teaser = $this->getTeaser( $this->beschreibung );
106
            }
107
            }
107
        }
108
        }
Zeile 108... Zeile 109...
108
 
109
 
109
        public static function Liste( $father )
110
        public static function Liste( $father )
Zeile 125... Zeile 126...
125
            {
126
            {
126
                $items[] = new artikel( $row["id"] );
127
                $items[] = new artikel( $row["id"] );
127
            }
128
            }
128
            return $items;
129
            return $items;
129
        }
130
        }
-
 
131
        private function getTeaser ( $beschreibung )
-
 
132
        {
-
 
133
            $cut_desc = 110;
-
 
134
            $teaser = strip_tags( $beschreibung );
-
 
135
            $str = substr( $teaser, 0, $cut_desc );
-
 
136
            $spacePos = strripos( $str, " " );
-
 
137
            $teaser = substr( $str, 0, $spacePos ) . " ...";
-
 
138
            return $teaser;
-
 
139
        }
Zeile 130... Zeile 140...
130
 
140
 
131
    }
141
    }