Changeset 13608
- Timestamp:
- Jul 17, 2010, 5:54:06 AM (12 years ago)
- Location:
- OpenPNE3/plugins/opCommunityTopicPlugin/trunk
- Files:
-
- 5 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/mobile_frontend/config/routing.yml
r12795 r13608 39 39 param: { module: communityTopic, action: searchForm } 40 40 41 config_community_topic_notification_mail: 42 class: sfRequestRoute 43 url: /config/communityTopicNotificationMail/:id 44 param: { module: communityTopic, action: configNotificationMail } 45 requirements: { id: \d+, sf_method: [post] } 46 41 47 communityTopic_nodefaults: 42 48 url: /communityTopic/* -
OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/mobile_frontend/i18n/messages.ja.xml
r13579 r13608 214 214 <source>Image %number%</source> 215 215 <target>写真%number%</target> 216 </trans-unit> 216 </trans-unit> 217 <trans-unit id=""> 218 <source>Want to receive</source> 219 <target>受け取る</target> 220 </trans-unit> 221 <trans-unit id=""> 222 <source>Don't want to receive</source> 223 <target>受け取らない</target> 224 </trans-unit> 225 <trans-unit id=""> 226 <source>Configuration of %community% topic notification mail to your PC mail address</source> 227 <target>%community%書き込みをPCメールで</target> 228 </trans-unit> 229 <trans-unit id=""> 230 <source>Configuration of %community% topic notification mail to your mobile mail address</source> 231 <target>%community%書き込みを携帯メールで</target> 232 </trans-unit> 233 <trans-unit id=""> 234 <source>Notification Mail Configuration</source> 235 <target>メール受信設定</target> 236 </trans-unit> 237 <trans-unit id=""> 238 <source>Configuring was successfull.</source> 239 <target>設定を保存しました</target> 240 </trans-unit> 217 241 </body> 218 242 </file> -
OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/mobile_frontend/modules/community/config/view.yml
r12449 r13608 19 19 is_component: false 20 20 21 configNotificationMail: 22 template: [communityTopic, configNotificationMail] 23 parts: [communityMember] 24 target: [before] 25 is_component: true 26 21 27 searchSuccess: 22 28 customize: -
OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/pc_frontend/config/routing.yml
r12795 r13608 39 39 param: { module: communityTopic, action: searchForm } 40 40 41 config_community_topic_notification_mail: 42 class: sfRequestRoute 43 url: /config/communityTopicNotificationMail/:id 44 param: { module: communityTopic, action: configNotificationMail } 45 requirements: { id: \d+, sf_method: [post] } 46 41 47 communityTopic_nodefaults: 42 48 url: /communityTopic/* -
OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/pc_frontend/i18n/messages.ja.xml
r12455 r13608 163 163 <target>コメント</target> 164 164 </trans-unit> 165 <trans-unit id=""> 166 <source>Want to receive</source> 167 <target>受け取る</target> 168 </trans-unit> 169 <trans-unit id=""> 170 <source>Don't want to receive</source> 171 <target>受け取らない</target> 172 </trans-unit> 173 <trans-unit id=""> 174 <source>Configuration of %community% topic notification mail to your PC mail address</source> 175 <target>%community%書き込みをPCメールで</target> 176 </trans-unit> 177 <trans-unit id=""> 178 <source>Configuration of %community% topic notification mail to your mobile mail address</source> 179 <target>%community%書き込みを携帯メールで</target> 180 </trans-unit> 181 <trans-unit id=""> 182 <source>Configuring was successfull.</source> 183 <target>設定を保存しました</target> 184 </trans-unit> 165 185 </body> 166 186 </file> -
OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/pc_frontend/modules/community/config/view.yml
r12669 r13608 11 11 parts: [communityHome] 12 12 target: [lastRow] 13 is_component: true 14 15 configNotificationMail: 16 template: [communityTopic, configNotificationMail] 17 parts: [communityHome] 18 target: [after] 13 19 is_component: true 14 20 -
OpenPNE3/plugins/opCommunityTopicPlugin/trunk/lib/action/opCommunityTopicPluginTopicActions.class.php
r13578 r13608 20 20 * @author Eitarow Fukamachi <fukamachi@tejimaya.net> 21 21 */ 22 23 22 abstract class opCommunityTopicPluginTopicActions extends sfActions 24 23 { … … 233 232 } 234 233 234 public function executeConfigNotificationMail($request) 235 { 236 $form = new opConfigCommunityTopicNotificationMailForm($request['id']); 237 238 $form->bind($request['topic_notify']); 239 if ($form->isValid()) 240 { 241 $form->save(); 242 $this->getUser()->setFlash('notice', 'Configuring was successfull.'); 243 } 244 else 245 { 246 $this->getUser()->setFlash('error', 'Failed to configure.'); 247 } 248 249 $this->redirect('@community_home?id='.$request['id']); 250 } 251 235 252 protected function processForm($request, sfForm $form) 236 253 { -
OpenPNE3/plugins/opCommunityTopicPlugin/trunk/lib/action/opCommunityTopicPluginTopicComponents.class.php
r12669 r13608 46 46 $this->eventSearchCaption = sfContext::getInstance()->getI18N()->__('Event'); 47 47 } 48 49 public function executeConfigNotificationMail($request) 50 { 51 $this->form = new opConfigCommunityTopicNotificationMailForm($request['id']); 52 } 48 53 } -
OpenPNE3/plugins/opCommunityTopicPlugin/trunk/lib/form/doctrine/PluginCommunityEventCommentForm.class.php
r13607 r13608 69 69 $communityEvent->setUpdatedAt($communityEventComment->getCreatedAt()); 70 70 $communityEvent->save(); 71 72 if ($this->isNew()) 73 { 74 opCommunityTopicToolkit::sendNotificationMail($communityEvent->getCommunity(), $communityEvent->getId(), 'event', $communityEventComment->getMember()->getName(), $communityEvent->getName(), $communityEventComment->getBody()); 75 } 76 77 return $communityEventComment; 71 78 } 72 79 -
OpenPNE3/plugins/opCommunityTopicPlugin/trunk/lib/form/doctrine/PluginCommunityEventForm.class.php
r13607 r13608 134 134 return $value; 135 135 } 136 137 public function save($con = null) 138 { 139 $result = parent::save($con); 140 141 if ($this->isNew()) 142 { 143 opCommunityTopicToolkit::sendNotificationMail($result->getCommunity(), $result->getId(), 'event', $result->getMember()->getName(), $result->getName(), $result->getBody()); 144 } 145 146 return $result; 147 } 136 148 } -
OpenPNE3/plugins/opCommunityTopicPlugin/trunk/lib/form/doctrine/PluginCommunityTopicCommentForm.class.php
r13607 r13608 93 93 $communityTopic->setUpdatedAt($communityTopicComment->getCreatedAt()); 94 94 $communityTopic->save(); 95 96 if ($this->isNew()) 97 { 98 opCommunityTopicToolkit::sendNotificationMail($communityTopic->getCommunity(), $communityTopic->getId(), 'topic', $communityTopicComment->getMember()->getName(), $communityTopic->getName(), $communityTopicComment->getBody()); 99 } 100 101 return $communityTopicComment; 95 102 } 96 103 } -
OpenPNE3/plugins/opCommunityTopicPlugin/trunk/lib/form/doctrine/PluginCommunityTopicForm.class.php
r13607 r13608 84 84 return $object; 85 85 } 86 87 public function save($con = null) 88 { 89 $result = parent::save($con); 90 91 if ($this->isNew()) 92 { 93 opCommunityTopicToolkit::sendNotificationMail($result->getCommunity(), $result->getId(), 'topic', $result->getMember()->getName(), $result->getName(), $result->getBody()); 94 } 95 96 return $result; 97 } 86 98 }
Note: See TracChangeset
for help on using the changeset viewer.