* @author Shohei Nakajima * @link http://www.netcommons.org NetCommons Project * @license http://www.netcommons.org/license.txt NetCommons License * @copyright Copyright 2014, NetCommons Project */ App::uses('FormHelper', 'View/Helper'); /** * Button Helper * * @package NetCommons\NetCommons\View\Helper */ class ButtonHelper extends FormHelper { /** * Other helpers used by FormHelper * * @var array */ public $helpers = array( 'Form', 'Html', 'NetCommons.BackTo', 'NetCommons.LinkButton', 'NetCommons.NetCommonsHtml', ); /** * Creates a `` tag for add link. The type attribute defaults * 後で削除 * * @param string $title The button's caption. Not automatically HTML encoded * @param mixed $url Link url * @param array $options Array of options and HTML attributes. * @return string A HTML button tag. * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::button */ public function addLink($title = '', $url = null, $options = array()) { return $this->LinkButton->add($title, $url, $options); } /** * Creates a `` tag for edit link link. The type attribute defaults * 後で削除 * * @param string $title The button's caption. Not automatically HTML encoded * @param mixed $url Link url * @param array $options Array of options and HTML attributes. * @return string A HTML button tag. * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::button */ public function editLink($title = '', $url = null, $options = array()) { return $this->LinkButton->edit($title, $url, $options); } /** * Creates a `