[ 'title', 'photo', 'companyName', 'location', 'contactName', 'contactDetails', 'price' ], AbstractObj::TYPE_WANTED => ['companyName', 'location', 'contactName', 'contactDetails'], AbstractObj::TYPE_HELP_WANTED => ['title', 'companyName', 'location', 'contactName', 'contactDetails'], AbstractObj::TYPE_OTHER => [], AbstractObj::TYPE_DEFAULT => ['description'] ]; $dfTypeRules = [ AbstractObj::TYPE_FOR_SALE => [ 'value' => AbstractObj::TYPE_FOR_SALE, '_elements' => $formElements[AbstractObj::TYPE_FOR_SALE] ], AbstractObj::TYPE_WANTED => [ 'value' => AbstractObj::TYPE_WANTED, '_elements' => $formElements[AbstractObj::TYPE_WANTED] ], AbstractObj::TYPE_HELP_WANTED => [ 'value' => AbstractObj::TYPE_HELP_WANTED, '_elements' => $formElements[AbstractObj::TYPE_HELP_WANTED] ], AbstractObj::TYPE_OTHER => [ 'value' => AbstractObj::TYPE_OTHER, '_elements' => $formElements[AbstractObj::TYPE_OTHER] ] ]; return array( 'itemName' => 'Classified Listing', 'itemsName' => 'Classifieds', 'hasLock' => true, 'resourceName' => 'Classified', 'photo' => ['width' => 220, 'height' => 170, 'resizeMethod' => 'cropCenter'], 'formElement' => $formElements, 'dynamicFormRelations' => [ [ '_element' => 'type', 'node' => '[name="type"]:checked', 'group' => '[name="type"]', 'event' => 'change', 'rules' => array_values($dfTypeRules) ] ], 'freeCompanyTypes' => [Entity::TYPE_REGULAR, Entity::TYPE_AFFILIATE] );