public function validate() { $value = RenegadeConstants::kChannelPrefix . '/' . Channel::format($this->form->{$this->key}); $this->updateRequiredFlag($value); $db = Renegade::database(); $response = $db->info(urlencode($value)); if (isset($response['error']) && $response['error'] == 'not_found') { $this->isValid = true; } }
</th> <th class="cel_state optional"><?php echo T_('State'); ?> </th> <th class="cel_action essential"><?php echo T_('Actions'); ?> </th> </tr> </thead> <tbody> <?php foreach ($object_ids as $channel_id) { $channel = new Channel($channel_id); $channel->format(); ?> <tr class="<?php echo UI::flip_class(); ?> " id="channel_row_<?php echo $channel->id; ?> "> <?php require AmpConfig::get('prefix') . '/templates/show_channel_row.inc.php'; ?> </tr> <?php } ?>
</th> <th class="cel_state optional"><?php echo T_('State'); ?> </th> <th class="cel_action essential"><?php echo T_('Actions'); ?> </th> </tr> </thead> <tbody> <?php foreach ($object_ids as $channel_id) { $libitem = new Channel($channel_id); $libitem->format(); ?> <tr class="<?php echo UI::flip_class(); ?> " id="channel_row_<?php echo $libitem->id; ?> "> <?php require AmpConfig::get('prefix') . '/templates/show_channel_row.inc.php'; ?> </tr> <?php } ?>