/** * Return PlaceStorage model for article with given ID * * @param string $sTitle title text * @return PlaceStorage model object */ public static function newFromTitle($sTitle) { // include title to article ID logic $instance = new PlaceCategory($sTitle); // read data from database $instance->read(); return $instance; }