![]() $brandCustMess->message_text = $brandCustomMessage->getMessageText() $brandCustMess->id = $brandCustomMessage->getID() Strtotime($brandCustomMessage->getModifiedAt()->format("Y-m-d H:i:s")) $response->status = FormUtilities::RESPONSE_STATUS_VALID If( $brandCustomMessages = $this->getDoctrine()->getRepository('PDOneBundle:BrandCustomMessages')->findBy(array("brand_id"=>$brand_id) ))įoreach ($brandCustomMessages as $brandCustomMessage) ![]() $brandCustomMessages = new BrandCustomMessages() $brand_table = $this->getDoctrine()->getRepository('PDOneBundle:Brand')->findBy(array("project"=>$project_id)) $project_id = $repappConfig->getProjectId() $repappConfig = $this->getDoctrine()->getRepository('PDOneBundle:RepappConfig')->findOneBy(array("app_id"=>$id)) $reptool_records = $this->getRequestedSync() Private function getBrandCustomMessages($request, $action, $case) Return $this->getBrandCustomMessages($request, $action, $case) ![]() $controller_response->headers->set('Content-Type', 'application/json charset=utf-8') Ĭase FormUtilities::CASE_BRAND_CUSTOM_MESSAGES: $controller_response = new Response( json_encode($response) ) $response->status = FormUtilities::RESPONSE_STATUS_BAD $expire_date = $repappConfig->getExpireDate()->getTimestamp() $current_timestamp = new \DateTime(date('Y-m-d')) If( ( $repappConfig = $this->getDoctrine()->getRepository('PDOneBundle:RepappConfig')->findOneBy(array("app_id"=>$app_id))) ) Private function _get($request, $action, $case) I've this PHP controller class (belongs to Symfony2 bundle): class ReptoolController extends PageController
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |