コード例 #1
0
ファイル: Util.php プロジェクト: ArcherCraftStore/Anasazi
 public static function attributesToString($attributes)
 {
     $printableAttribs = array();
     foreach ($attributes as $key => $value) {
         if (is_array($value)) {
             $pAttrib = GameRocket_Util::attributesToString($value);
         } else {
             if ($value instanceof DateTime) {
                 $pAttrib = $value->format(DateTime::RFC850);
             } else {
                 $pAttrib = $value;
             }
         }
         $printableAttribs[$key] = sprintf('%s', $pAttrib);
     }
     return GameRocket_Util::implodeAssociativeArray($printableAttribs);
 }
コード例 #2
0
ファイル: Error.php プロジェクト: ArcherCraftStore/Anasazi
 public function __toString()
 {
     $output = GameRocket_Util::attributesToString($this->_attributes);
     return __CLASS__ . '[' . $output . ']';
 }
コード例 #3
0
ファイル: Player.php プロジェクト: ArcherCraftStore/Anasazi
 public function __toString()
 {
     return __CLASS__ . '[' . GameRocket_Util::attributesToString($this->_attributes) . ']';
 }