이전 버전의 Zend Framework를 최신 버전 (1.11)으로 업그레이드하려고합니다.ZendAMF 1.11 및 누락 된 소스
일부 ArrayCollection을 내가 액세스 할 수없는 Flex-app에 보내야합니다. 이전 버전의 ZF의 Zend_Amf_Value_Messaging_ArrayCollection
에는 최신 버전에는없는 source
속성이 있습니다.
source
속성을 가지고있는 Zend_Amf_Value_Messaging_ArrayCollection
클래스를 편집 해 보았습니다.하지만 ZF가 객체를 Flex-app에 보내지 않는 것 같습니다 (디버깅 프록시를 통해 알게되었습니다). ArrayCollection에는 여전히 올바른 키 (AFAIK, 0 -> 3)가 있지만 값은 NULL
입니다.
이 작은 테스트 파일입니다 : 의견
$c = new RoomCategoryVO();
$c->name = 'root';
$c->childCategories = new Zend_Amf_Value_Messaging_ArrayCollection();
$cc1 = new RoomCategoryVO();
$cc1->sortPriority = 2;
$cc1->name = $this->xml->roomService->windows;
$cc1->parentCategory = $c;
$cc1->childItems = new Zend_Amf_Value_Messaging_ArrayCollection();
$re11 = new ElementVO();
$re11->id = "simpleWindow";
$re11->name = $this->xml->roomService->window;
$re11->type = 'SIMPLE_WINDOW';
$re11->icon = 'assets/runtime/images/schemeIcons/simpleWindow.png';
//$cc1->childItems->source[] = $re11;
$cc1->childItems[] = $re11;
//$c->childCategories->source[] = $cc1;
$c->childCategories->append($cc1);
당신이 그들 아래에 새로운 방법을 ZendAMF의 '오래된'방법을 참조하십시오.
ZF의 이전 버전으로 돌아 가지 않고 ZendAMF가 source
속성을 다시 사용하게하는 방법이 있습니까?