|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-05-21 21:28 UTC] pollita@php.net
[2004-05-21 21:33 UTC] pollita@php.net
[2004-05-24 09:09 UTC] j dot uribe at globalforma dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 08:00:01 2025 UTC |
Description: ------------ The compiler gives me an error when i exec a code Reproduce code: --------------- echo(LMS::$dataModelCore[$_POST['lmsget']]()); Part of the class is: class LMS{ public static $dataModelCore=array( "cmi.core.student_id"=>'coreStudentID($tipo,$valor="")', "cmi.core.student_name"=>'coreStudentName($tipo,$valor="")', "cmo.core.lesson_location"=>'coreLessonLocation($tipo,$valor="")', "cmi.core.credit"=>'coreCredit($tipo,$valor="")', "cmi.core.lesson_status"=>'coreLessonStatus($tipo,$valor="")', "cmi.core.entry"=>'coreEntry($tipo,$valor="")', "cmi.core.score"=> array( "cmi.core.score.raw"=>'coreScoreRaw($tipo,$valor="")', "cmi.core.score.max"=>'coreScoreMax($tipo,$valor="")', "cmi.core.score.min"=>'coreScoreMin($tipo,$valor="")', ), "cmi.core.total_time"=>'coreTotalTime($tipo,$valor="")', "cmi.core.lesson_mode"=>'coreLessonMode($tipo,$valor="")', "cmi.core.exit"=>'coreExit($tipo,$valor="")', "cmi.core.session_time"=>'coreSessionTime($tipo,$valor="")', ); static function suspendData($tipo,$valor=""){ echo "Suspend Data"; } static function launchData($tipo,$valor=""){ echo "Launch Data"; } ... ... ) Expected result: ---------------- I expected execute the function asociate whith the value of the array.