Re: why creating "teams", "cores" and "groups" won't work this time, either
| From: | Ian Warner | Date: | Fri, 06 Oct 2006 11:22:37 +0000 |
| Subject: | Re: why creating "teams", "cores" and "groups" won't work this time, either | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-44400@lists.php.net to get a copy of this message | ||
Alexey Borzov wrote:
Hi, Ian Warner wrote:Below is a simple text counter I use for SMS message sending. <?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * textarea_counter.php * * PHP versions 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt. If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @category Admin * @package adminSo I was right and you don't have these "extensions"? And please note that you were the first to do "cheap shots" by explicitly naming the package I maintain (QuickForm) and implying that its maintainers don't respond to suggestions. I didnt imply "maintainers don't respond to suggestions." with quickform, I was generalising and thats wrong of me sorry, but Alexey you are a very personal person and thats just out of order.What noob question - you mean the one regarding your Sigma (which i like very much thanks) this was mostly due to poor documentation, I explained this to you in my reply. No need to insult me here Alexey that was a cheap shot.My company has currently hacked nearly every Package we use, we have multiple extensions for quickforms, templates, paging DO etc. I would submit more patches but they just dont seem to get a response, so why waste my time really.Judging by the n00b questions you asked recently in pear-general, you don't really have any extensions and so are just trolling here.
* @author Triangle Solutions Ltd <iwarner@triangle-solutions.com>* @copyright 2000-2006 Triangle Solutions Ltd * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version SVN: $Id: textarea_counter.php 254 2006-09-22 12:37:41Z nick $
* @link http://admin.triangle-solutions.com/*/ /** * This class inherits QuickForm_textarea and adds a letter and/or word counter */ require_once 'HTML/QuickForm/textarea.php'; /** * @category Admin * @package admin */ class HTML_QuickForm_textarea_counter extends HTML_QuickForm_textarea { public static $area_id = 0; public $max_chars = 150; public $max_words = null; function HTML_QuickForm_textarea_counter($elementName = null, $elementLabel = null, $attributes = null,
$max_chars = 150, $max_words = null){
parent::HTML_QuickForm_textarea($elementName, $elementLabel, $attributes);
$this->_type = 'textarea_counter';
$this->max_chars = $max_chars;
$this->max_words = $max_words;
}
/**
* Returns the textarea element in HTML
*
* @since 1.0
* @access public
* @return string
*/
function toHtml()
{
global $tr;
$this->updateAttributes(array('onkeypress' => 'check_max_chars(' . $this->max_chars .
', this, ' . HTML_QuickForm_textarea_counter::$area_id . ', event);'));
$string = parent::toHtml();
$string .= '
<div style="display:none" id="max_' .
HTML_QuickForm_textarea_counter::$area_id . '">' .
$tr->get('max_chars_limit_reached') . ' (' . $this->max_chars . ')
</div>
<div style="display:inline" id="show_count_' .
HTML_QuickForm_textarea_counter::$area_id .'">
<br /><input size="3" id="count_' . HTML_QuickForm_textarea_counter::$area_id .
'" type="text" value="' . $this->max_chars .
'" /> ' . $tr->get('characters_left') . '
</div>';
HTML_QuickForm_textarea_counter::$area_id++;
return $string;
}
}
?>
and probably one of the main reasons I am losing faith in PEAR.I am not "PEAR", and there are lots of more polite people among its developers. So please consider losing faith in me personally.