0
나는 그 질문과 그에 대한 대답을 Working with podio api, i get a DateTime object and cant exccess its values으로 보았다.Podio API를 사용하고 날짜 시간에 액세스하는 중 podio 설명서가 불완전합니까?
주어진 답은 포맷 기능을 사용하는 저에게는 효과적 이었지만 작동하지 않는 것으로 보아 podio의이 설명서가 유효 기간이 지났는지 궁금합니다. 여기에 특히
http://podio.github.io/podio-php/fields/#date-field
내가 "를 참조 확장하지 않는 한 '있는 그대로'작동하지 않은 값을 얻기 위해 podio 사이트에 주어진 예 -> 형식 ('Ymd 일수 H를 : i : s ') ". 이러한 진술은 "인쇄"진술과 대 진술과 같은 것이기 때문에 나는 이것이 중요한 세부 사항이라고 생각한다.내가 잘못하고 뭔가 빠졌습니까?
$item = PodioItem::get_basic(123);
$field_id = 'date';
print $item->fields[$field_id]->start; // E.g. DateTime or null
print $item->fields[$field_id]->start_date; // E.g. DateTime or null
print $item->fields[$field_id]->start_time; // E.g. DateTime or null
print $item->fields[$field_id]->end; // E.g. DateTime or null
print $item->fields[$field_id]->end_date; // E.g. DateTime or null
print $item->fields[$field_id]->end_time; // E.g. DateTime or null
print $item->fields[$field_id]->humanized_value; E.g. "2014-02-14 14:00-15:00"
감사합니다. print 문을 제거하면 객체 유형을보고 싶지 않은 사용자에게 도움이됩니다. 관련 문제에서 humanized_value는 함수라고 생각하므로 $ item-> fields [$ field_id] -> humanized_value() 여야합니까? – aharkin