/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Javier Quevedo Fernández 05-2009.
*/
package net.ximpel.classes
{
public class lib_flex_ximpel_editor_net_ximpel_classes_Helper
{
public function lib_flex_ximpel_editor_net_ximpel_classes_Helper()
{
}
public function stringToBoolean(string : String):Boolean{
switch (string) {
case "1":
case "True":
return true;
case "0":
case "False":
return false;
default:
return Boolean(string);
}
}
public static function getSubject(subjects : Array, id:String):Subject{
//for (var _subjectO : Object in subjects as Subject){
// var _subject : Subject= _subjectO as Subject;
for (var i : int = 0; i