Author: tkoomzaaskz
Date: 2010-02-24 11:08:01 +0100 (Wed, 24 Feb 2010)
New Revision: 28247
Modified:
plugins/tdVideoPlugin/trunk/README
plugins/tdVideoPlugin/trunk/config/tdVideoPluginConfiguration.class.php
plugins/tdVideoPlugin/trunk/lib/model/doctrine/PlugintdVideo.class.php
plugins/tdVideoPlugin/trunk/package.xml
Log:
[td][video] release 0.1.7
Modified: plugins/tdVideoPlugin/trunk/README
===================================================================
--- plugins/tdVideoPlugin/trunk/README 2010-02-24 09:56:03 UTC (rev 28246)
+++ plugins/tdVideoPlugin/trunk/README 2010-02-24 10:08:01 UTC (rev 28247)
@@ -73,9 +73,6 @@
* _td_video_upload_dir_ - upload dir of all video files
- * _td_video_short_text_sign_count_ - character count of a short video
- descrtiption version
-
Documentation
=============
Modified:
plugins/tdVideoPlugin/trunk/config/tdVideoPluginConfiguration.class.php
===================================================================
--- plugins/tdVideoPlugin/trunk/config/tdVideoPluginConfiguration.class.php
2010-02-24 09:56:03 UTC (rev 28246)
+++ plugins/tdVideoPlugin/trunk/config/tdVideoPluginConfiguration.class.php
2010-02-24 10:08:01 UTC (rev 28247)
@@ -19,8 +19,5 @@
{
// video files upload dir
sfConfig::set('td_video_upload_dir',
sfConfig::get('sf_web_dir').'/uploads/td/video');
-
- // video short description sign count
- sfConfig::set('td_video_short_text_sign_count', 200);
}
}
\ No newline at end of file
Modified: plugins/tdVideoPlugin/trunk/lib/model/doctrine/PlugintdVideo.class.php
===================================================================
--- plugins/tdVideoPlugin/trunk/lib/model/doctrine/PlugintdVideo.class.php
2010-02-24 09:56:03 UTC (rev 28246)
+++ plugins/tdVideoPlugin/trunk/lib/model/doctrine/PlugintdVideo.class.php
2010-02-24 10:08:01 UTC (rev 28247)
@@ -19,7 +19,7 @@
*/
public function getDescriptionShort()
{
- return tdTools::getMbShortenedString($this->getDescription(),
sfConfig::get('td_video_short_text_sign_count'));
+ return tdTools::getMbShortenedString($this->getDescription(),
sfConfig::get('td_short_text_sign_count'));
}
/**
@@ -45,4 +45,16 @@
$this->save();
return true;
}
+
+ /**
+ * Attempts to delete the video flv file before record is deleted.
+ *
+ * @param Doctrine_Event $event
+ */
+ public function preDelete($event)
+ {
+ $file_path = sfConfig::get('td_video_upload_dir').'/'.$this->getFile();
+ if (file_exists($file_path))
+ unlink($file_path);
+ }
}
\ No newline at end of file
Modified: plugins/tdVideoPlugin/trunk/package.xml
===================================================================
--- plugins/tdVideoPlugin/trunk/package.xml 2010-02-24 09:56:03 UTC (rev
28246)
+++ plugins/tdVideoPlugin/trunk/package.xml 2010-02-24 10:08:01 UTC (rev
28247)
@@ -10,10 +10,10 @@
<email>[email protected]</email>
<active>yes</active>
</lead>
- <date>2010-02-23</date>
+ <date>2010-02-24</date>
<time>11:00:00</time>
<version>
- <release>0.1.6</release>
+ <release>0.1.7</release>
<api>0.1.0</api>
</version>
<stability>
@@ -140,7 +140,7 @@
<package>
<name>tdCorePlugin</name>
<channel>plugins.symfony-project.org</channel>
- <min>0.1.8</min>
+ <min>0.1.9</min>
</package>
</required>
</dependencies>
@@ -152,6 +152,24 @@
<release>
<version>
+ <release>0.1.7</release>
+ <api>0.1.0</api>
+ </version>
+ <stability>
+ <release>beta</release>
+ <api>beta</api>
+ </stability>
+ <license uri="http://www.symfony-project.org/license">MIT license</license>
+ <date>2010-02-24</date>
+ <license>MIT</license>
+ <notes>
+ * short description sign count moved to core
+ * deletion of video file before record is deleted.
+ </notes>
+ </release>
+
+ <release>
+ <version>
<release>0.1.6</release>
<api>0.1.0</api>
</version>
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.