示例#1
0
文件: CalDate.php 项目: ulrikkold/cal
 public function getMonthName($abbr = false, $length = false)
 {
     $monthName = Calc::getMonthFullname($this->month);
     if ($abbr) {
         if ($length === false) {
             $length = $this->getMonthAbbreviationLength();
         }
         $monthName = self::crop($monthName, $length);
     }
     return $this->applyStdWrap($monthName);
 }
示例#2
0
文件: Date.php 项目: ulrikkold/cal
 /**
  * Gets the full name or abbriviated name of this month
  *
  * Gets the full name or abbriviated name of this month
  *
  * @access public
  * @param boolean $abbr
  *        	abbrivate the name
  * @return string name of this month
  */
 function getMonthName($abbr = false)
 {
     if ($abbr) {
         return Calc::getMonthAbbrname($this->month);
     } else {
         return Calc::getMonthFullname($this->month);
     }
 }