Skip to content

Commit

Permalink
removing reference to old code
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Aug 13, 2012
1 parent 7edf816 commit 11aa857
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Core/Libs/Console/Command/InfinitasFixturesShell.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
App::import('lib', 'Libs.InfinitasAppShell');

class InfinitasFixturesShell extends InfinitasAppShell {
class InfinitasFixturesShell extends AppShell {
public $uses = array();

public $tasks = array('Infinitas', 'Fixture', 'InfinitasFixtureBake');
public $tasks = array('Fixture', 'Libs.InfinitasFixtureBake');

/**
* @brief map options to methods
Expand All @@ -19,12 +19,12 @@ class InfinitasFixturesShell extends InfinitasAppShell {

public function main() {
Configure::write('debug', 2);
$this->Infinitas->h1('Infinitas Fixtures');
$this->h1('Infinitas Fixtures');

$this->Infinitas->out('[G]enerate');
$this->Infinitas->out('[U]pdate');
$this->Infinitas->out('[I]mport');
$this->Infinitas->out('[Q]uit');
$this->out('[G]enerate');
$this->out('[U]pdate');
$this->out('[I]mport');
$this->out('[Q]uit');

$method = strtoupper($this->in(__('What would you like to do?'), array_keys($this->__options)));

Expand All @@ -44,7 +44,7 @@ public function generate() {
if(!$plugins) {
return false;
}

foreach($plugins as $plugin) {
$this->__generateFixture($plugin, true);
}
Expand All @@ -68,13 +68,13 @@ public function import() {
private function __generateFixture($plugin, $new) {
$models = App::objects('model', App::pluginPath($plugin) . 'models', false);
$models = array_combine(range(1, count($models)), $models);

foreach($models as $k => $model) {
$models[$k] = Inflector::humanize(str_replace('.php', '', $model));
}
$models['A'] = 'all';
$models['B'] = 'back';

$this->tabbedList($models);

$option = null;
Expand Down

0 comments on commit 11aa857

Please sign in to comment.