Code improvement : change fiche function

getAttribut becomes load_attribute,
 strAttribut becomes set_attribute
getAttribut becomes get_attribute
This commit is contained in:
sparkyx 2025-08-01 17:44:22 +02:00
parent bec8b39afa
commit 6c3154abbd
45 changed files with 316 additions and 311 deletions

View file

@ -160,7 +160,7 @@ class Fiche_DefTest extends Testcase
}
/**
* @testdox getAttribut
* @testdox load_attribute
*/
function testGetAttribut()
{
@ -168,7 +168,7 @@ class Fiche_DefTest extends Testcase
$fiche_def=$this->getFicheDef();
$aProperty=$g_connection->get_array("select ad_id from jnt_fic_attr where fd_id=$1", [$fiche_def->id]);
$this->assertEquals(count($fiche_def->getAttribut()),count($aProperty)," number of property different in db and function getAttribut");
$this->assertEquals(count($fiche_def->load_attribute()),count($aProperty)," number of property different in db and function load_attribute");
}
/**
* @testdox if we insert a attribut ; all the cards from this category will have these attributes