Help for this page

Select Code to Download


  1. or download this
    package admt::cdbi::adslot;
    use base 'cdbi';
    ...
    
    __PACKAGE__->set_up_table('block');
    __PACKAGE__->has_many('adslot' => ['admt::cdbi::adslot', 'blockid']);
    
  2. or download this
    CREATE TABLE `adslot` (
      `id` bigint(20) unsigned NOT NULL auto_increment,
    ...
      `blk_app_by` varchar(32) NOT NULL default '',
      PRIMARY KEY  (`id`)
    ) TYPE=MyISAM;
    
  3. or download this
      my $block = admt::cdbi::block->retrieve( 'id' => $q->param('blockid'
    +) );
      my $slots = $block->adslot;
    ...
      while ( my $slotdata = $slots->next ) {
        $otext .= Dumper $slotdata, "\n";
      }
    
  4. or download this
    $VAR1 = bless( {
                     '_data' => [
                                  {
    ...
                     '_class' => 'admt::cdbi::adslot'
                   }, 'Class::DBI::Iterator' );
    
  5. or download this
    $VAR1 = bless( {
                     'id' => '1'
                   }, 'admt::cdbi::block' );
    ...
                     'id' => '1'
                   }, 'admt::cdbi::block' );
    ;