Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WP_MatchesMapRegex has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/class-wp.php on line 635

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Translation_Entry has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/pomo/entry.php on line 14

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_Reader has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/pomo/streams.php on line 12

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_FileReader has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/pomo/streams.php on line 106

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_StringReader has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/pomo/streams.php on line 150

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_CachedFileReader has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/pomo/streams.php on line 189

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_CachedIntFileReader has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/pomo/streams.php on line 204

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_Factory has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/widgets.php on line 405

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/load.php on line 545

Deprecated: Function create_function() is deprecated in /home/araki/blog.ceed.jp/wp-includes/pomo/translations.php on line 171
CakePHPでコンソールアプリを作る(その2) | CEED
Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/formatting.php on line 3460

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/formatting.php on line 3460

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/formatting.php on line 3460

CakePHPでコンソールアプリを作る(その2)

CakePHPでコンソールアプリを作るに引き続き、基本的なメソッドを紹介します。

  • $this->out($str)
  • 標準出力に$strを出力します。

  • $this->in($title, $choice, $default)
  • $choice(配列)で指定した選択リストを表示します。ちょうどbake等の選択肢のようなイメージになります。
    bakeで言うと$this->in(‘Look okay?’, array(‘y’,’n’,’q’), ‘y’); のような感じです。

  • $this->hr($int)
  • “-”を使って区切り線を出力します。$intで数値をしてすると、区切り線の下に指定数分の空白行が入ります。

  • $this->error($title, $msg)
  • $title, $msg を出力してexitします。

  • $this->createFile($path, $content)
  • $path で指定したパスにファイルを作成します


Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/formatting.php on line 3460

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/formatting.php on line 3460

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/formatting.php on line 3460

Leave a Comment
Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/formatting.php on line 3460

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

getting health insurance in new york buy clomid online UK major health insurance companies buy levitra uk online what are wells fargo hours buy finasteride affordable health insurance for children accutane no prescription medical center of trinity viagra online uten resept midwestern university wellness center dapoxetine top individual health insurance companies viagra ireland