function getObjectElements(Table $object = null, $row = null)
 {
     if (!$row) {
         $row = $this->getElements();
     }
     $id = null;
     if ($object) {
         $id = $object->getId();
         if (!is_array($id)) {
             $id = array($id);
         }
     }
     $idStr = '';
     if ($id) {
         foreach ($id as $i) {
             $idStr .= '[' . $i . ']';
         }
     }
     $formRow = array();
     foreach ($row as $colname => $r) {
         $name = $r->attributes['name'];
         $r = clone $r;
         if ($object) {
             $r->setValue($object->getSQLField($name));
         }
         $r->attributes['name'] = $name . $idStr;
         $formRow[] = new Element\Label($colname, $r);
         $formRow[] = $r;
     }
     return $formRow;
 }