Help for this page

Select Code to Download


  1. or download this
    FS::Model::Items can't SELECT 
    FROM   items
    ...
    WHERE  address = ? AND zip = ?
    " with ParamValues: 0='170 W. 15th St.', 1='10011'] at /Library/Perl/5
    +.8.8/DBIx/ContextualFetch.pm line 52.
     at /Library/Perl/5.8.8/Class/DBI/Search/Basic.pm line 169
    
  2. or download this
    # within FS::Model::Items->new();
    $self->table('items');
    $self->columns( 
        qw/item item_type name lng lat zip url phone fax address/
        );
    
  3. or download this
    # within FS::Model::Items->get_info
    my $item = $self->search( 
        address => $item_info->{address}, zip => $item_info->{zip}, 
        );
    
  4. or download this
    my $item_obj = FS::Model::Items->new();
    my $res_obj  = $item_obj->get_info($item_info);
    
  5. or download this
    package FS::Model::Items;
    
    use Object::InsideOut qw(FS::Model::DBI);
    
  6. or download this
    package FS::Model::DBI;
    use base ( Class::DBI );
    
    use Object::InsideOut;